Commit 44e46432 authored by Hugh Davenport's avatar Hugh Davenport
Browse files

Revert "debugging for disabling device detection"

This reverts commit c416b976.
parent c416b976
......@@ -350,17 +350,13 @@ if (defined('JSON') && !defined('NOSESSKEY')) {
}
// Device detection
require_once(get_config('libroot') . 'mobile_detect/Mobile_Detect.php');
if (!get_account_preference($USER->get('id'), 'disabledevicedetection')) {
require_once(get_config('libroot') . 'mobile_detect/Mobile_Detect.php');
$detect = new Mobile_Detect();
$SESSION->set('handheld_device', ($detect->isMobile() || $detect->isTablet()));
$SESSION->set('mobile', $detect->isMobile());
$SESSION->set('tablet', $detect->isTablet());
$SESSION->add_info_message('done detection');
$SESSION->add_info_message(print_r($SESSION, true));
}
else {
$SESSION->add_info_message('no detection');
}
/*
......
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