From: Jean-Philippe Lang Date: Sat, 24 Oct 2009 12:33:08 +0000 (+0000) Subject: Small fix to HTML title. X-Git-Tag: 0.9.0~277 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=383b2bd9039256ab3bbcf5208ea5162b6ca46603;p=redmine.git Small fix to HTML title. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2964 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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