]> 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 869d32f9303e41a2e96198615a2171305f6732e6..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);
                }
@@ -210,7 +210,7 @@ sub sessioncgi ($$) { #{{{
                                if (! exists $pagesources{$parent}) {
                                        $parent="index";
                                }
-                               IkiWiki::redirect($q, $config{url}."/".htmlpage($parent));
+                               IkiWiki::redirect($q, urlto($parent, '/', 1));
                        }
                }
                else {