]> sipb.mit.edu Git - ikiwiki.git/commitdiff
the problem with coding while drunk -- idiotic mistakes
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 23 Dec 2006 06:48:56 +0000 (06:48 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 23 Dec 2006 06:48:56 +0000 (06:48 +0000)
IkiWiki.pm
IkiWiki/Render.pm
debian/changelog

index b8f3e7a55dcefb0c39aba10f5b2773d7beafadbb..18f9ab3fed2c0053b149b3d95ae603363fc47362 100644 (file)
@@ -413,7 +413,7 @@ sub htmllink ($$$;$$$) { #{{{
                $bestlink=htmlpage($bestlink);
        }
        if (! grep { $_ eq $bestlink } map { @{$_} } values %renderedfiles) {
-               return $linktext unless $config{cgi};
+               return $linktext unless length $config{cgiurl};
                return "<span><a href=\"".
                        cgiurl(do => "create", page => lc($link), from => $page).
                        "\">?</a>$linktext</span>"
index 6d19a1dd307d85bef13eff457651e5d95e0bca41..86396420736a8e7120815da60b579e9781b8b0cb 100644 (file)
@@ -93,7 +93,7 @@ sub genpage ($$$) { #{{{
                $template->param(historyurl => $u);
                $actions++;
        }
-       if ($config{discussion} && ($config{cgi} || exists $links{"$page/discussion"})) {
+       if ($config{discussion} && (length $config{cgiurl} || exists $links{"$page/discussion"})) {
                $template->param(discussionlink => htmllink($page, $page, "Discussion", 1, 1));
                $actions++;
        }
index d0fb28093668ca896046276009cfe02b659d158f..ce19d779c40e911626065c21f5c3354b0e871c96 100644 (file)
@@ -3,9 +3,9 @@ ikiwiki (1.37) UNRELEASED; urgency=low
   * Add mirrorlist plugin.
   * Fixed permissions of some files that were 600 in the tarball. (Did not
     affect the deb).
-  * Avoid creating edit links when not in cgi mode.
+  * Avoid creating edit links when the cgi url is not known.
   * Avoid displaying discussion links at all, if there's not a discussion
-    page, when not in cgi mode.
+    page, when the cgi url isn't known.
 
  -- Joey Hess <joeyh@debian.org>  Sat, 23 Dec 2006 01:17:54 -0500