From ed2939e19106ca55b9c749e563d7c23422ee9f6d Mon Sep 17 00:00:00 2001 From: Florin-Ciprian Bodin Date: Mon, 18 Mar 2024 19:50:32 +0200 Subject: [PATCH] Update MobileDeviceDetect.php to php8 --- classes/MobileDeviceDetect.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/classes/MobileDeviceDetect.php b/classes/MobileDeviceDetect.php index 8a91d26..315048a 100644 --- a/classes/MobileDeviceDetect.php +++ b/classes/MobileDeviceDetect.php @@ -36,6 +36,7 @@ class MobileDeviceDetect protected $cache; protected $words; protected $request; + protected $language; private $_user_agent; private $_name; @@ -46,15 +47,15 @@ class MobileDeviceDetect * Load sessions * @access public * - */ + */ function __construct($ua = '') { global $cache; global $request, $words; - $this->cache = $cache; - $this->request = $request; - $this->language = $words; + $this->cache = $cache; + $this->request = $request; + $this->language = $words; if(empty($ua)) { @@ -607,9 +608,8 @@ class MobileDeviceDetect " - {$this->getVersion()}" . //"Browser User Agent String: {$this->getUserAgent()}
\n" . " :: from OS: {$this->getPlatform()}" . - "-{$mobile_device}, on a server with PHP ". PHP_VERSION ." & OS ". PHP_OS; + "-{$mobile_device}, on a server with PHP ". PHP_VERSION ." & OS ". PHP_OS; } } - //end of class ?>