]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/editpage.pm
update
[git.ikiwiki.info.git] / IkiWiki / Plugin / editpage.pm
index 467cd9ed5bf54827da0f75d03304918ba8947a71..fca970c60be3a13199298ddf736c70d14dd2528d 100644 (file)
@@ -229,8 +229,9 @@ sub cgi_editpage ($$) {
                                my $dir=$from."/";
                                $dir=~s![^/]+/+$!!;
                                
-                               if ((defined $form->field('subpage') && length $form->field('subpage')) ||
-                                   $page eq lc(gettext('Discussion'))) {
+                               if ((defined $form->field('subpage') &&
+                                    length $form->field('subpage')) ||
+                                   $page eq lc($config{discussionpage})) {
                                        $best_loc="$from/$page";
                                }
                                else {