]> source.dussan.org Git - redmine.git/commitdiff
Small fix to HTML title.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 24 Oct 2009 12:33:08 +0000 (12:33 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 24 Oct 2009 12:33:08 +0000 (12:33 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2964 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb

index ea6f286d3e5b6f6ec57c22d6ef9a6bcb99956d7c..b1e3a1b4eb53d211e819e9d9be1386ef6f04df5c 100644 (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