Explorar o código

Merge branch 'SomeFixes' of https://github.com/Spuds/Playpen

Spuds %!s(int64=12) %!d(string=hai) anos
pai
achega
bf6cc5ddce
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Sources/Class-BrowserDetect.php

+ 1 - 1
Sources/Class-BrowserDetect.php

@@ -122,7 +122,7 @@ class browser_detector
 	function isFirefox()
 	{
 		if (!isset($this->_browsers['is_firefox']))
-			$this->_browsers['is_firefox'] = preg_match('~(?:Firefox|Ice[wW]easel|IceCat|Shiretoko|Minefield)/~', $_SERVER['HTTP_USER_AGENT']) === 1;
+			$this->_browsers['is_firefox'] = preg_match('~(?:Firefox|Ice[wW]easel|IceCat|Shiretoko|Minefield)/~', $_SERVER['HTTP_USER_AGENT']) === 1 && $this->isGecko();
 		return $this->_browsers['is_firefox'];
 	}