summaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-01-11 11:22:46 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-01-11 11:22:46 +0000
commit8b999962dec50fc4599f77c1a23fbdc7b43dab21 (patch)
treebb9f2f7ea5bffa7f50779af1e129f4ed787f3944 /app/helpers
parent2db3338ab22ffbccb69b51c97baeba51646ac1e3 (diff)
downloadredmine-8b999962dec50fc4599f77c1a23fbdc7b43dab21.tar.gz
redmine-8b999962dec50fc4599f77c1a23fbdc7b43dab21.zip
Make favicon themeable (#15689).
Patch by Felix Schäfer modified by Jean-Philippe Lang. git-svn-id: http://svn.redmine.org/redmine/trunk@12646 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/application_helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index cf7c11740..617a9029b 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -1270,7 +1270,8 @@ module ApplicationHelper
end
def favicon
- "<link rel='shortcut icon' href='#{image_path('/favicon.ico')}' />".html_safe
+ fav_path = (current_theme && current_theme.favicon?) ? current_theme.favicon_path : '/favicon.ico'
+ "<link rel='shortcut icon' href='#{image_path(fav_path)}' />".html_safe
end
def robot_exclusion_tag