]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/editpage.pm
updated from pesco's darcs repo, current to Oct 11 version
[git.ikiwiki.info.git] / IkiWiki / Plugin / editpage.pm
index 794548c6de933d03f1e2755ae3ad8cdefc2ca8a8..30c93df20961090f0bc1e278d0bbf0e5685ecbbb 100644 (file)
@@ -250,7 +250,7 @@ sub cgi_editpage ($$) { #{{{
                            file_pruned($from, $config{srcdir}) ||
                            $from=~/^\// || 
                            $absolute ||
-                           $form->submitted eq "Preview") {
+                           $form->submitted) {
                                @page_locs=$best_loc=$page;
                        }
                        else {