Footers should have a nil #footer.

This commit is contained in:
Tom Preston-Werner
2010-07-26 16:48:52 -07:00
parent 2bc9b2ec86
commit afcaacbdf6
2 changed files with 7 additions and 0 deletions
+2
View File
@@ -152,6 +152,8 @@ module Gollum
#
# Returns the footer Page or nil if none exists.
def footer
return nil if page_match('_Footer', self.name)
dirs = self.path.split('/')
dirs.pop
while !dirs.empty?