MDL-45846 Libraries Reinstate custom user agent device detection

This commit is contained in:
Jenny Gray
2014-06-06 09:12:58 +01:00
parent a6b91c8407
commit d983601e46
+1 -1
View File
@@ -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;