blah
[ikiwiki.git] / ikiwiki
diff --git a/ikiwiki b/ikiwiki
index cfc963c120df53c0ec680bbe0fe51dfb0531eb5e..6a1eb0e297c6427db0d1bda18766fd310fd65708 100755 (executable)
--- a/ikiwiki
+++ b/ikiwiki
@@ -669,7 +669,7 @@ sub cgi_recentchanges () { #{{{
                wikiname => $wikiname,
                changelog => [rcs_recentchanges(100)],
        );
                wikiname => $wikiname,
                changelog => [rcs_recentchanges(100)],
        );
-       return $template->output;
+       print $template->output;
 } #}}}
 
 sub cgi_signin ($$) { #{{{
 } #}}}
 
 sub cgi_signin ($$) { #{{{
@@ -940,8 +940,6 @@ usage() unless @ARGV == 3;
 ($templatedir) = possibly_foolish_untaint(shift);
 ($destdir) = possibly_foolish_untaint(shift);
 
 ($templatedir) = possibly_foolish_untaint(shift);
 ($destdir) = possibly_foolish_untaint(shift);
 
-print cgi_recentchanges();
-
 if ($cgi && ! length $url) {
        error("Must specify url to wiki with --url when using --cgi");
 }
 if ($cgi && ! length $url) {
        error("Must specify url to wiki with --url when using --cgi");
 }