protected shouldAttachmentBeCal ( ) : boolean | ||
Résultat | boolean |
protected function shouldAttachmentBeCal()
{
$browser = $this->getUserAgent();
$matches = array();
preg_match('/os (\\d+)_(\\d+)\\s+/', $browser, $matches);
$version = isset($matches[1]) ? (int) $matches[1] : 999;
return $version < 8;
}