Browse Source

code layout clean up ApplicationHelper#parse_wiki_links

git-svn-id: http://svn.redmine.org/redmine/trunk@18667 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.1.0
Toshi MARUYAMA 4 years ago
parent
commit
3e3cf4d993
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      app/helpers/application_helper.rb

+ 3
- 2
app/helpers/application_helper.rb View File

@@ -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]

Loading…
Cancel
Save