Commit cd0fc598 authored by Liuba Kazakov's avatar Liuba Kazakov
Browse files

Responsive Design: hide html editing for mobile device,



as it doesn't work for some devices

Change-Id: I34a72348b7d9c23a5840754a41022e806349c543
Signed-off-by: default avatarLiuba Kazakov <liuba@catalyst-au.net>
parent 4d3b4aa2
......@@ -3030,9 +3030,9 @@ function mahara_log($logname, $string) {
*/
function is_html_editor_enabled () {
global $USER;
return (!get_config('wysiwyg') && ($USER->get_account_preference('wysiwyg') || defined('PUBLIC'))) ||
get_config('wysiwyg') == 'enable';
global $USER, $SESSION;
return ((!get_config('wysiwyg') && ($USER->get_account_preference('wysiwyg') || defined('PUBLIC'))) ||
get_config('wysiwyg') == 'enable') && $SESSION->get('mobile') == false;
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment