Commit 5166213f authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Hide Redmine version in atom feeds and pdf properties (#794).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2003 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 57a4ee31
...@@ -47,7 +47,7 @@ module IfpdfHelper ...@@ -47,7 +47,7 @@ module IfpdfHelper
@font_for_content = 'Arial' @font_for_content = 'Arial'
@font_for_footer = 'Helvetica' @font_for_footer = 'Helvetica'
end end
SetCreator("redMine #{Redmine::VERSION}") SetCreator(Redmine::Info.app_name)
SetFont(@font_for_content) SetFont(@font_for_content)
end end
......
...@@ -6,7 +6,7 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do ...@@ -6,7 +6,7 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
xml.id url_for(:controller => 'welcome', :only_path => false) xml.id url_for(:controller => 'welcome', :only_path => false)
xml.updated((@items.first ? @items.first.event_datetime : Time.now).xmlschema) xml.updated((@items.first ? @items.first.event_datetime : Time.now).xmlschema)
xml.author { xml.name "#{Setting.app_title}" } xml.author { xml.name "#{Setting.app_title}" }
xml.generator(:uri => Redmine::Info.url, :version => Redmine::VERSION) { xml.text! Redmine::Info.versioned_name; } xml.generator(:uri => Redmine::Info.url) { xml.text! Redmine::Info.app_name; }
@items.each do |item| @items.each do |item|
xml.entry do xml.entry do
url = url_for(item.event_url(:only_path => false)) url = url_for(item.event_url(:only_path => false))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment