diff --git a/framework/base/router.class.php b/framework/base/router.class.php index e3307f8ffc..b5d957a5c8 100644 --- a/framework/base/router.class.php +++ b/framework/base/router.class.php @@ -929,6 +929,8 @@ class baseRouter setcookie('device', $this->clientDevice, $this->config->cookieLife, $this->config->webRoot); if(!isset($_COOKIE['device'])) $_COOKIE['device'] = $this->clientDevice; + + return $this->clientDevice; } /**