diff options
author | Jens Averkamp <j.averkamp@two-developers.com> | 2015-09-10 16:51:21 +0300 |
---|---|---|
committer | Jens Averkamp <j.averkamp@two-developers.com> | 2015-09-10 16:51:21 +0300 |
commit | d034daeca132a7efe8a618ac2492672f78edcb5c (patch) | |
tree | c4aaaf03961b9663af37f1f1c813776aed0b6d79 /plugins/CoreAdminHome/OptOutManager.php | |
parent | 4a5b9c293da32c4eef431e32d1e443a55d46c657 (diff) | |
parent | cb1c8f109c82d99968301ed2a1de5e99c50b2f9f (diff) |
Merge remote-tracking branch 'github/master' into OptOutManagerQueryParameters
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 321002f5e0..78d142c141 100644 --- a/plugins/CoreAdminHome/OptOutManager.php +++ b/plugins/CoreAdminHome/OptOutManager.php @@ -208,7 +208,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(); @@ -226,13 +225,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; - } } |