Test failure with JRuby 1.7.2 (#12228).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11279 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
7643281510
commit
b73c42f619
|
@ -588,9 +588,9 @@ module ApplicationHelper
|
||||||
esc, all, page, title = $1, $2, $3, $5
|
esc, all, page, title = $1, $2, $3, $5
|
||||||
if esc.nil?
|
if esc.nil?
|
||||||
if page =~ /^([^\:]+)\:(.*)$/
|
if page =~ /^([^\:]+)\:(.*)$/
|
||||||
link_project = Project.find_by_identifier($1) || Project.find_by_name($1)
|
identifier, page = $1, $2
|
||||||
page = $2
|
link_project = Project.find_by_identifier(identifier) || Project.find_by_name(identifier)
|
||||||
title ||= $1 if page.blank?
|
title ||= identifier if page.blank?
|
||||||
end
|
end
|
||||||
|
|
||||||
if link_project && link_project.wiki
|
if link_project && link_project.wiki
|
||||||
|
|
Loading…
Reference in New Issue