diff options
author | Simon McVittie <smcv@ http://smcv.pseudorandom.co.uk/> | 2009-07-26 16:59:26 +0100 |
---|---|---|
committer | Simon McVittie <smcv@ http://smcv.pseudorandom.co.uk/> | 2009-07-26 17:04:49 +0100 |
commit | 2ef53b128d9f40fa998215b2809e676207050902 (patch) | |
tree | ad8fd6e60aa8e24605cd81863f6b4999f8e04ab8 | |
parent | b1f31ab7cbc87a572886673e7809d5e2fc5ee491 (diff) |
getsource: remove unnecessary IkiWiki:: prefixes
Many variables and functions are exported.
-rw-r--r-- | IkiWiki/Plugin/getsource.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/IkiWiki/Plugin/getsource.pm b/IkiWiki/Plugin/getsource.pm index 1b7eb56c6..db5614ec1 100644 --- a/IkiWiki/Plugin/getsource.pm +++ b/IkiWiki/Plugin/getsource.pm @@ -43,7 +43,7 @@ sub cgi_getsource ($) { my $cgi=shift; # Note: we use sessioncgi rather than just cgi - # because we need $IkiWiki::pagesources{} to be + # because we need %pagesources to be # populated. return unless (defined $cgi->param('do') && @@ -55,7 +55,7 @@ sub cgi_getsource ($) { IkiWiki::loadindex(); - if (! exists $IkiWiki::pagesources{$page}) { + if (! exists $pagesources{$page}) { IkiWiki::cgi_custom_failure( $cgi->header(-status => "404 Not Found"), IkiWiki::misctemplate(gettext("missing page"), @@ -66,7 +66,7 @@ sub cgi_getsource ($) { exit; } - if (! defined pagetype($IkiWiki::pagesources{$page})) { + if (! defined pagetype($pagesources{$page})) { IkiWiki::cgi_custom_failure( $cgi->header(-status => "403 Forbidden"), IkiWiki::misctemplate(gettext("not a page"), @@ -77,7 +77,7 @@ sub cgi_getsource ($) { exit; } - my $data = IkiWiki::readfile(IkiWiki::srcfile($IkiWiki::pagesources{$page})); + my $data = readfile(srcfile($pagesources{$page})); if (! $config{getsource_mimetype}) { $config{getsource_mimetype} = "text/plain; charset=utf-8"; |