diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 2bd72b50..ae01f86d 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -19,11 +19,13 @@ class ApplicationController < ActionController::Base Wiki.new end + protected + def xhtml_enabled? in_a_web? and [:markdownMML, :markdownPNG, :markdown].include?(@web.markup) end - protected + helper_method :xhtml_enabled? def check_authorization if in_a_web? and authorization_needed? and not authorized? diff --git a/app/views/layouts/default.rhtml b/app/views/layouts/default.rhtml index 505246af..0d0c62d8 100644 --- a/app/views/layouts/default.rhtml +++ b/app/views/layouts/default.rhtml @@ -41,7 +41,7 @@