fix bug where relative images in previews did not render
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user