projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79312b2
)
fix misleading comment
author
Joey Hess
<joey@gnu.kitenet.net>
Sat, 8 Aug 2009 16:23:50 +0000
(12:23 -0400)
committer
Joey Hess
<joey@gnu.kitenet.net>
Sat, 8 Aug 2009 16:23:50 +0000
(12:23 -0400)
IkiWiki/Plugin/getsource.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/getsource.pm
b/IkiWiki/Plugin/getsource.pm
index e8aea2c3901ba36c22f2991f0e4a4c2795a9a981..91c4cc1c95b9448db01820b88d044e74c7203f45 100644
(file)
--- 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}) {