diff options
Diffstat (limited to 'app/models/wiki.rb')
-rw-r--r-- | app/models/wiki.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/wiki.rb b/app/models/wiki.rb index 8233c3d48..8d461a85b 100644 --- a/app/models/wiki.rb +++ b/app/models/wiki.rb @@ -31,7 +31,8 @@ class Wiki < ActiveRecord::Base # find the page with the given title def find_page(title) - pages.find_by_title(Wiki.titleize(title || start_page)) + title = start_page if title.blank? + pages.find_by_title(Wiki.titleize(title)) end # turn a string into a valid page title |