MDL-45846 Libraries Reinstate custom user agent device detection
This commit is contained in:
@@ -120,7 +120,7 @@ class core_useragent {
|
||||
protected function __construct($forceuseragent = null) {
|
||||
global $CFG;
|
||||
if (!empty($CFG->devicedetectregex)) {
|
||||
$this->devicetypecustoms = json_decode($CFG->devicedetectregex);
|
||||
$this->devicetypecustoms = json_decode($CFG->devicedetectregex, true);
|
||||
}
|
||||
if ($forceuseragent !== null) {
|
||||
$this->useragent = $forceuseragent;
|
||||
|
||||
Reference in New Issue
Block a user