From 22edaf77c2a4318ebd8ed0881dd6a62cfc2ca2b2 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 8 Aug 2009 12:23:50 -0400 Subject: [PATCH] fix misleading comment --- IkiWiki/Plugin/getsource.pm | 5 +---- 1 file changed, 1 insertion(+), 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}) {