@@ 824-829 (lines=6) @@ | ||
821 | $version = $this->getVersion(); |
|
822 | } |
|
823 | //Safari 1-2 didn't had a "Version" string in the UA, only a WebKit build and/or Safari build, extract version from these... |
|
824 | if (!$found || $version == '') { |
|
825 | if (preg_match('/.*Safari[ (\/]*([a-z0-9.-]*)/i', $this->_agent, $matches)) { |
|
826 | $version = $this->safariBuildToSafariVer($matches[1]); |
|
827 | $found = true; |
|
828 | } |
|
829 | } |
|
830 | if (!$found || $version == '') { |
|
831 | if (preg_match('/.*AppleWebKit[ (\/]*([a-z0-9.-]*)/i', $this->_agent, $matches)) { |
|
832 | $version = $this->webKitBuildToSafariVer($matches[1]); |
|
@@ 830-835 (lines=6) @@ | ||
827 | $found = true; |
|
828 | } |
|
829 | } |
|
830 | if (!$found || $version == '') { |
|
831 | if (preg_match('/.*AppleWebKit[ (\/]*([a-z0-9.-]*)/i', $this->_agent, $matches)) { |
|
832 | $version = $this->webKitBuildToSafariVer($matches[1]); |
|
833 | $found = true; |
|
834 | } |
|
835 | } |
|
836 | if ($found) { |
|
837 | $this->setBrowser(self::BROWSER_SAFARI); |
|
838 | $this->setVersion($version); |