summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}) {