Small fix to HTML title.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2964 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2009-10-24 12:33:08 +00:00
parent 83717a9b75
commit 383b2bd903
1 changed files with 2 additions and 1 deletions

View File

@ -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