Explorar el Código

! do the gecko check with firefox checks

Signed-off-by: Spuds <[email protected]>
Spuds hace 12 años
padre
commit
41831f4713
Se han modificado 1 ficheros con 1 adiciones y 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'];
 	}