aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2011-11-27 13:19:19 -0400
committerJoey Hess <joey@kitenet.net>2011-11-27 13:19:19 -0400
commit41f6363a633cffd002f3af9f8b216f56f8924ecc (patch)
tree9ab3359a59a540f0dd8edc97b4e756f6a5baa0e2 /IkiWiki/Plugin
parent42e15638dcd10029168214845919e6eab5dcf283 (diff)
downloadikiwiki-41f6363a633cffd002f3af9f8b216f56f8924ecc.tar
ikiwiki-41f6363a633cffd002f3af9f8b216f56f8924ecc.tar.gz
editpage: Fix FormattingHelp link on Discussion pages.
In 875d550f1278215e6c87d3b78ff87db24c6d76b3 I for some reason made $page be changed when creating a discussion page, which broke the link on the edit page. Changing page seems unnecessary, so reverted that part of the change.
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/editpage.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/editpage.pm b/IkiWiki/Plugin/editpage.pm
index a5c29a352..54051c58c 100644
--- a/IkiWiki/Plugin/editpage.pm
+++ b/IkiWiki/Plugin/editpage.pm
@@ -231,7 +231,7 @@ sub cgi_editpage ($$) {
if ! $form->submitted && lc($page) ne $page;
}
elsif (lc $page eq lc $config{discussionpage}) {
- @page_locs=$best_loc=$page="$from/".lc($page);
+ @page_locs=$best_loc="$from/".lc($page);
}
else {
my $dir=$from."/";