diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-08-13 05:56:01 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-08-13 05:56:01 +0000 |
commit | be092a67c22e98885f79936c18529f9fac5c0fe0 (patch) | |
tree | 4e16cbc5375402a3480ad47d47a96ab7f8fb7643 /IkiWiki/CGI.pm | |
parent | 9e1c0c5586979f15d651156a3933c56bff26adca (diff) | |
download | ikiwiki-be092a67c22e98885f79936c18529f9fac5c0fe0.tar ikiwiki-be092a67c22e98885f79936c18529f9fac5c0fe0.tar.gz |
* Fix a bug in page type determination during online editing.
Diffstat (limited to 'IkiWiki/CGI.pm')
-rw-r--r-- | IkiWiki/CGI.pm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index db97740f6..f1f83cfc4 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -372,9 +372,7 @@ sub cgi_editpage ($$) { #{{{ # favor the type of linking page $type=pagetype($pagesources{$from}); } - else { - $type=$config{default_pageext}; - } + $type=$config{default_pageext} unless defined $type; $file=$page.".".$type; } |