diff options
author | Joey Hess <joey@kitenet.net> | 2011-02-01 21:01:26 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-02-01 21:01:26 -0400 |
commit | b752e7fec4d2bdd788a70722455018245900126b (patch) | |
tree | 89311c1ef640e71b2e252bbfa77049a10f8a88b6 /IkiWiki/Plugin | |
parent | 07ec1372387b8c6fd8f3d8c6c0fdf10aabc9a706 (diff) |
editpage: Avoid inheriting internal page types.
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/editpage.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/editpage.pm b/IkiWiki/Plugin/editpage.pm index 8f71dafa8..3d094c263 100644 --- a/IkiWiki/Plugin/editpage.pm +++ b/IkiWiki/Plugin/editpage.pm @@ -131,7 +131,8 @@ sub cgi_editpage ($$) { # favor the type of linking page $type=pagetype($pagesources{$from}); } - $type=$config{default_pageext} unless defined $type; + $type=$config{default_pageext} + if ! defined $type || $type=~/^_/; # not internal type $file=newpagefile($page, $type); if (! $form->submitted) { $form->field(name => "rcsinfo", value => "", force => 1); |