lib/gollum/frontend/app.rb in gollum-2.4.1 vs lib/gollum/frontend/app.rb in gollum-2.4.2
- old
+ new
@@ -16,11 +16,10 @@
class String
alias :upstream_to_url :to_url
# _Header => header which causes errors
def to_url
return nil if self.nil?
- return self if ['_Header', '_Footer', '_Sidebar'].include? self
- upstream_to_url
+ upstream_to_url :exclude => ['_Header', '_Footer', '_Sidebar']
end
end
# Run the frontend, based on Sinatra
#