mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
Add enable_mobile_theme site setting. Uncheck it to disable the mobile theme.
This commit is contained in:
@ -109,6 +109,7 @@ module ApplicationHelper
|
||||
end
|
||||
|
||||
def mobile_view?
|
||||
return false unless SiteSetting.enable_mobile_theme
|
||||
if session[:mobile_view]
|
||||
session[:mobile_view] == '1'
|
||||
else
|
||||
|
Reference in New Issue
Block a user