Fix home loop with page-file-dir #491

This commit is contained in:
bootstraponline
2012-10-14 15:45:26 -06:00
parent b82556c9c0
commit 90cc512bd1
+2
View File
@@ -193,6 +193,8 @@ module Precious
page_dir = File.join(settings.wiki_options[:page_file_dir].to_s,
settings.wiki_options[:base_path].to_s)
# Home is a special case.
path = '' if name.downcase == 'home'
page_dir = File.join(page_dir, path)