]> sipb.mit.edu Git - ikiwiki.git/commitdiff
pagetype is exported
authorJoey Hess <joey@kodama.kitenet.net>
Sat, 27 Sep 2008 17:34:46 +0000 (13:34 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Sat, 27 Sep 2008 17:34:46 +0000 (13:34 -0400)
IkiWiki/Plugin/attachment.pm
IkiWiki/Plugin/remove.pm
IkiWiki/Plugin/rename.pm

index f1a9b19394701ea82558513ecc423b451ba2ddc4..6214df7f33b96f5845fa8235ac26ce6055351edf 100644 (file)
@@ -271,7 +271,7 @@ sub attachment_list ($) { #{{{
 
        my @ret;
        foreach my $f (values %pagesources) {
-               if (! defined IkiWiki::pagetype($f) &&
+               if (! defined pagetype($f) &&
                    $f=~m/^\Q$loc\E[^\/]+$/ &&
                    -e "$config{srcdir}/$f") {
                        push @ret, {
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);
                }
index 4ee377b86c5b5f500eb6acd1323fa174cf4ba709..0ea77ec64f6ce464702ea483d21fd5cc36ec8369 100644 (file)
@@ -29,7 +29,7 @@ sub check_canrename ($$$$$$) { #{{{
        my $q=shift;
        my $session=shift;
 
-       my $attachment=! defined IkiWiki::pagetype($pagesources{$src});
+       my $attachment=! defined pagetype($pagesources{$src});
 
        # Must be a known source file.
        if (! exists $pagesources{$src}) {