Small fix to HTML title.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2964 e93f8b46-1217-0410-a6f0-8f06a7374b81
pull/351/head
Jean-Philippe Lang 15 years ago
parent 83717a9b75
commit 383b2bd903
  1. 3
      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

Loading…
Cancel
Save