summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-14 18:11:21 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-14 18:11:21 +0000
commit3e3cf4d9936b8887b64d2768d7b661b61e48c2e1 (patch)
tree5c981e272c8751bbdd67fe01299ef7314af0807c /app
parent36e9cd2276d74509860bf9bc20880b86e6f5ff09 (diff)
downloadredmine-3e3cf4d9936b8887b64d2768d7b661b61e48c2e1.tar.gz
redmine-3e3cf4d9936b8887b64d2768d7b661b61e48c2e1.zip
code layout clean up ApplicationHelper#parse_wiki_links
git-svn-id: http://svn.redmine.org/redmine/trunk@18667 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/helpers/application_helper.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 223083d6f..121de247f 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -899,8 +899,9 @@ module ApplicationHelper
# check if page exists
wiki_page = link_project.wiki.find_page(page)
url =
- if anchor.present? && wiki_page.present? && (obj.is_a?(WikiContent) ||
- obj.is_a?(WikiContent::Version)) && obj.page == wiki_page
+ if anchor.present? && wiki_page.present? &&
+ (obj.is_a?(WikiContent) || obj.is_a?(WikiContent::Version)) &&
+ obj.page == wiki_page
"##{anchor}"
else
case options[:wiki_links]