summaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-10-24 12:33:08 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-10-24 12:33:08 +0000
commit383b2bd9039256ab3bbcf5208ea5162b6ca46603 (patch)
tree96445e990b75101d8d2789d02296265f11d0adc1 /app/helpers
parent83717a9b754177c4fff4cff4dead6a7ef544a605 (diff)
downloadredmine-383b2bd9039256ab3bbcf5208ea5162b6ca46603.tar.gz
redmine-383b2bd9039256ab3bbcf5208ea5162b6ca46603.zip
Small fix to HTML title.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2964 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 ea6f286d3..b1e3a1b4e 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -325,12 +325,13 @@ module ApplicationHelper
end
def html_title(*args)
+ puts "HTML_TITLE #{args.join(',')}"
if args.empty?
title = []
title << @project.name if @project
title += @html_title if @html_title
title << Setting.app_title
- title.compact.join(' - ')
+ title.select {|t| !t.blank? }.join(' - ')
else
@html_title ||= []
@html_title += args