]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/remove.pm
analysis of most used non-exported library functions by plugins
[git.ikiwiki.info.git] / IkiWiki / Plugin / remove.pm
index 772be07b59f5ea1ff7b931216940fe0bc4dbaa3f..91a66cb6ebe115d217ca7211bdb88634d29c384f 100644 (file)
@@ -46,7 +46,7 @@ sub check_canremove ($$$) { #{{{
 
        # If a user can't upload an attachment, don't let them delete it.
        # This is sorta overkill, but better safe than sorry.
-       if (! defined IkiWiki::pagetype($pagesources{$page})) {
+       if (! defined pagetype($pagesources{$page})) {
                if (IkiWiki::Plugin::attachment->can("check_canattach")) {
                        IkiWiki::Plugin::attachment::check_canattach($session, $page, $file);
                }