MDL-78468 admin: Removed enabledevicedetection theme setting

This commit is contained in:
Meirza
2023-08-22 09:30:13 +07:00
parent e998f14061
commit 352e427520
6 changed files with 6 additions and 8 deletions
-5
View File
@@ -176,11 +176,6 @@ class core_useragent {
* @return string
*/
protected function guess_device_type() {
global $CFG;
if (empty($CFG->enabledevicedetection)) {
$this->devicetype = self::DEVICETYPE_DEFAULT;
return $this->devicetype;
}
foreach ($this->devicetypecustoms as $value => $regex) {
if (preg_match($regex, $this->useragent)) {
$this->devicetype = $value;