when linking images, assume '.' is the root path

This commit is contained in:
rick
2010-07-14 13:42:21 -07:00
parent ecbb902e62
commit 5135de1c3f
2 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -214,7 +214,7 @@ module Gollum
if name =~ /^\//
@wiki.file(name[1..-1], @version)
else
path = ::File.join(@dir, name)
path = @dir == '.' ? name : ::File.join(@dir, name)
@wiki.file(path, @version)
end
end