fix bug where relative images in previews did not render

This commit is contained in:
rick
2011-01-27 16:34:29 -08:00
parent f708dc7002
commit 732e8a9361
3 changed files with 27 additions and 6 deletions
+2 -2
View File
@@ -333,9 +333,9 @@ module Gollum
# path - The String directory path of the page file.
#
# Returns the populated Gollum::Page.
def populate(blob, path)
def populate(blob, path=nil)
@blob = blob
@path = (path + '/' + blob.name)[1..-1]
@path = "#{path}/#{blob.name}"[1..-1]
self
end