common: drop compatibility copyright rel
[sheet.git] / common.inc.plp
index 6672bd5010f66ba09b84c809729cf0b3c1e28606..e5292ba46abd1365258e2ca7e812396deed7cc98 100644 (file)
@@ -168,7 +168,7 @@ sub Html {
        created by <a href="http://shiar.nl/" rel="author">Shiar</a> •
        <a href="http://www.fsf.org/licensing/licenses/agpl-3.0.html"
         title="Licensed under the GNU Affero General Public License, version 3"
-        rel="license copyright">AGPLv3</a>
+        rel="license">AGPLv3</a>
 EOT
                say sprintf '• %.3fs', Time::HiRes::tv_interval($Time) if $Dev and $Time;
                say '</p>';
@@ -180,6 +180,7 @@ EOT
 sub showlink {
        my ($title, $href, $selected) = @_;
        return sprintf(
+               !$href ? '%s' :
                $selected ? '<strong>%s</strong>' : '<a href="%2$s">%s</a>',
                EscapeHTML($title), EscapeHTML($href)
        );