Permalink
Browse files

Set version on _Footer files.

  • Loading branch information...
1 parent 47ce6d2 commit 39117ae44a5c3d0aaf934e6813ad15813ab49b4c @mojombo mojombo committed Aug 5, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/gollum/page.rb
View
@@ -301,7 +301,9 @@ def find_page_in_this_tree(tree, dir, name)
when Grit::Blob
if page_match(name, item.name)
path = dir == '' ? '' : ::File.join('/', dir)
- return self.class.new(@wiki).populate(item, path)
+ page = self.class.new(@wiki).populate(item, path)
+ page.version = self.version
+ page
end
end
end

0 comments on commit 39117ae

Please sign in to comment.