diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-10-09 17:02:22 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-10-09 17:02:22 +0000 |
commit | 7626b21a1efd5430eb7cad45b128b2551f59ab23 (patch) | |
tree | 1cf36726e6ea0e0003cb6e338f26771f46ae53a7 /app | |
parent | 16befaf2e9ae12914020bc9055c757ef78c4f8c0 (diff) | |
download | redmine-7626b21a1efd5430eb7cad45b128b2551f59ab23.tar.gz redmine-7626b21a1efd5430eb7cad45b128b2551f59ab23.zip |
Fixed that export: links are broken (#12050).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10580 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/application_helper.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 4743eda43..0911fdfc2 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -797,11 +797,10 @@ module ApplicationHelper if repository && User.current.allowed_to?(:browse_repository, project) name =~ %r{^[/\\]*(.*?)(@([0-9a-f]+))?(#(L\d+))?$} path, rev, anchor = $1, $3, $5 - link = link_to h("#{project_prefix}#{prefix}:#{repo_prefix}#{name}"), {:controller => 'repositories', :action => 'entry', :id => project, :repository_id => repository.identifier_param, + link = link_to h("#{project_prefix}#{prefix}:#{repo_prefix}#{name}"), {:controller => 'repositories', :action => (prefix == 'export' ? 'raw' : 'entry'), :id => project, :repository_id => repository.identifier_param, :path => to_path_param(path), :rev => rev, - :anchor => anchor, - :format => (prefix == 'export' ? 'raw' : nil)}, + :anchor => anchor}, :class => (prefix == 'export' ? 'source download' : 'source') end end |