Permalink
Browse files

use correct status code

  • Loading branch information...
1 parent c2f633d commit 998b961e4654402626dfa42a56222322bda0ef5c Pavel Valodzka committed Feb 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/irwi/extensions/controllers/wiki_pages.rb
View
2 lib/irwi/extensions/controllers/wiki_pages.rb
@@ -106,7 +106,7 @@ def page_class
# Renders user-specified or default template
def render_template( template )
- render "#{template_dir template}/#{template}"
+ render "#{template_dir template}/#{template}", :status => (case template when 'no' then 404 when 'not_allowed' then 403 else 200 end)
end
# Initialize @current_user instance variable

0 comments on commit 998b961

Please sign in to comment.