From: Joey Hess Date: Sat, 8 Aug 2009 16:23:50 +0000 (-0400) Subject: fix misleading comment X-Git-Tag: 3.15~17 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/22edaf77c2a4318ebd8ed0881dd6a62cfc2ca2b2 fix misleading comment --- diff --git a/IkiWiki/Plugin/getsource.pm b/IkiWiki/Plugin/getsource.pm index e8aea2c39..91c4cc1c9 100644 --- a/IkiWiki/Plugin/getsource.pm +++ b/IkiWiki/Plugin/getsource.pm @@ -42,10 +42,6 @@ sub pagetemplate (@) { sub cgi_getsource ($) { my $cgi=shift; - # Note: we use sessioncgi rather than just cgi - # because we need %pagesources to be - # populated. - return unless (defined $cgi->param('do') && $cgi->param("do") eq "getsource"); @@ -53,6 +49,7 @@ sub cgi_getsource ($) { my $page=$cgi->param('page'); + # For %pagesources. IkiWiki::loadindex(); if (! exists $pagesources{$page}) {