aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/editpage.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-08-13 21:41:33 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-08-13 21:41:33 -0400
commit830c9e59b2c4d5c90e4316d8e81558e1aeb132f2 (patch)
tree8eb2789a6039095f7704656ab43addce4b0bb7d4 /IkiWiki/Plugin/editpage.pm
parentfed73d8d922ec4d52457a99f652c1d0d26ba67c3 (diff)
downloadikiwiki-830c9e59b2c4d5c90e4316d8e81558e1aeb132f2.tar
ikiwiki-830c9e59b2c4d5c90e4316d8e81558e1aeb132f2.tar.gz
Add discussionpage configuration setting
By adding this setting, we get both more configurability, and a minor optimisation too, since gettext does not need to be called continually to get the Discussion value.
Diffstat (limited to 'IkiWiki/Plugin/editpage.pm')
-rw-r--r--IkiWiki/Plugin/editpage.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/editpage.pm b/IkiWiki/Plugin/editpage.pm
index 467cd9ed5..fca970c60 100644
--- a/IkiWiki/Plugin/editpage.pm
+++ b/IkiWiki/Plugin/editpage.pm
@@ -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 {