Skip to content

Commit

Permalink
Fixes a path_strip() issue; discussed at https://groups.google.com/fo…
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaclav Mikolasek committed Feb 14, 2012
1 parent 4dc70aa commit f45de0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filebrowser/functions.py
Expand Up @@ -67,7 +67,7 @@ def get_version_path(value, version_prefix, site=None):

if site.storage.isfile(value):
path, filename = os.path.split(value)
relative_path = path_strip(path, site.directory)
relative_path = path_strip(os.path.join(path,''), site.directory)
filename, ext = os.path.splitext(filename)
version_filename = filename + "_" + version_prefix + ext
if VERSIONS_BASEDIR:
Expand Down

0 comments on commit f45de0a

Please sign in to comment.