scm: filesystem: override "path_encoding" method in adapter (#2274).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5864 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
3d4a3315f6
commit
cbd1715109
|
@ -38,6 +38,10 @@ module Redmine
|
||||||
@path_encoding = path_encoding.blank? ? 'UTF-8' : path_encoding
|
@path_encoding = path_encoding.blank? ? 'UTF-8' : path_encoding
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def path_encoding
|
||||||
|
@path_encoding
|
||||||
|
end
|
||||||
|
|
||||||
def format_path_ends(path, leading=true, trailling=true)
|
def format_path_ends(path, leading=true, trailling=true)
|
||||||
path = leading ? with_leading_slash(path) :
|
path = leading ? with_leading_slash(path) :
|
||||||
without_leading_slash(path)
|
without_leading_slash(path)
|
||||||
|
|
Loading…
Reference in New Issue