]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/CGI.pm
simplified plugin definitions
[git.ikiwiki.info.git] / IkiWiki / CGI.pm
index a8e610e2de1c193900404f1d8dbb2d8796c919e3..6c489df8dc7f724582b3aadd82ba34d6f7b2a947 100644 (file)
@@ -323,6 +323,9 @@ sub cgi_editpage ($$) { #{{{
        if (exists $pagesources{$page}) {
                $file=$pagesources{$page};
                $type=pagetype($file);
+               if (! defined $type) {
+                       error(sprintf(gettext("%s is not an editable page"), $page));
+               }
        }
        else {
                $type=$form->param('type');