summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-08-08 12:23:50 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-08-08 12:23:50 -0400
commit22edaf77c2a4318ebd8ed0881dd6a62cfc2ca2b2 (patch)
tree11c14f535a057ed4741461d9fc0dff53e3d9816c
parent79312b2754571ac80253993217da2b0899086342 (diff)
fix misleading comment
-rw-r--r--IkiWiki/Plugin/getsource.pm5
1 files changed, 1 insertions, 4 deletions
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}) {