Fix bug when homepage
This commit is contained in:
1 parent
119d8ff13a
commit
8f1ce78ab4
1 file changed
+2
-2
@@ -96,9 +96,9 @@ class ApplicationController < ActionController::Base
|
||||
end
|
||||
|
||||
# Render the page
|
||||
def render_page(param)
|
||||
def render_page(param={})
|
||||
if @item
|
||||
render :text => process_page(@item, param[:id],param), :layout => 'page_layout'
|
||||
render :text => process_page(@item, param[:id], param), :layout => 'page_layout'
|
||||
else
|
||||
render :text => '404 Not Found'
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user