diff options
author | diosmosis <benaka@piwik.pro> | 2015-08-26 20:13:02 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-09-05 00:09:30 +0300 |
commit | 1c824311865846737acddc2c0105ace2bdc1171e (patch) | |
tree | e1f413935435a48e450bf0afc0db8bfeb035241c /plugins/CoreAdminHome/OptOutManager.php | |
parent | e40c542d7d6d5d46f25c97a191c86499f8e2fab4 (diff) |
Make isSafari code path the only code path in optOut form.
Diffstat (limited to 'plugins/CoreAdminHome/OptOutManager.php')
-rw-r--r-- | plugins/CoreAdminHome/OptOutManager.php | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/plugins/CoreAdminHome/OptOutManager.php b/plugins/CoreAdminHome/OptOutManager.php index 42a1cd9aea..9aede6b7b5 100644 --- a/plugins/CoreAdminHome/OptOutManager.php +++ b/plugins/CoreAdminHome/OptOutManager.php @@ -151,7 +151,6 @@ class OptOutManager $this->view->trackVisits = $trackVisits; $this->view->nonce = Nonce::getNonce('Piwik_OptOut', 3600); $this->view->language = $lang; - $this->view->isSafari = $this->isUserAgentSafari(); $this->view->showConfirmOnly = Common::getRequestVar('showConfirmOnly', false, 'int'); $this->view->reloadUrl = $reloadUrl; $this->view->javascripts = $this->getJavascripts(); @@ -168,13 +167,4 @@ class OptOutManager { return $this->doNotTrackHeaderChecker; } - - /** - * @return bool - */ - protected function isUserAgentSafari() - { - $userAgent = @$_SERVER['HTTP_USER_AGENT'] ?: ''; - return strpos($userAgent, 'Safari') !== false && strpos($userAgent, 'Chrome') === false; - } } |