summaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorEtienne Massip <etienne.massip@gmail.com>2011-10-02 15:32:34 +0000
committerEtienne Massip <etienne.massip@gmail.com>2011-10-02 15:32:34 +0000
commitac2dbde135f7a63c4d57c6a7d0d07fff53f0d3ee (patch)
tree8ee97ac0a9a57c276aa6d499f3157c3706f3c425 /app/helpers
parent1ee65e046913ede620c7dd989081bb61d8a8c198 (diff)
downloadredmine-ac2dbde135f7a63c4d57c6a7d0d07fff53f0d3ee.tar.gz
redmine-ac2dbde135f7a63c4d57c6a7d0d07fff53f0d3ee.zip
Fix generation of blank local link when no title is specified in wiki link.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7560 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/application_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index dce6913a3..4f3316224 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -576,7 +576,7 @@ module ApplicationHelper
"##{anchor}"
else
case options[:wiki_links]
- when :local; "#{title}.html"
+ when :local; "#{page.present? ? Wiki.titleize(page) : ''}.html" + (anchor.present? ? "##{anchor}" : '')
when :anchor; "##{title}" # used for single-file wiki export
else
wiki_page_id = page.present? ? Wiki.titleize(page) : nil