mirror of
https://github.com/meineerde/redmine.git
synced 2026-04-06 16:01:39 +00:00
Use @image_url@ for @favicon_url@ (#40087).
Patch by Go Maeda (@maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@22618 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
2cd7198dc8
commit
28061fbcdb
@ -1759,10 +1759,7 @@ module ApplicationHelper
|
|||||||
|
|
||||||
# Returns the full URL to the favicon
|
# Returns the full URL to the favicon
|
||||||
def favicon_url
|
def favicon_url
|
||||||
# TODO: use #image_url introduced in Rails4
|
image_url(favicon_path)
|
||||||
path = favicon_path
|
|
||||||
base = url_for(:controller => 'welcome', :action => 'index', :only_path => false)
|
|
||||||
base.sub(%r{/+$}, '') + '/' + path.sub(%r{^/+}, '')
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def robot_exclusion_tag
|
def robot_exclusion_tag
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user