NEW detection of edge browser
This commit is contained in:
parent
a7aa3ee438
commit
4f25bc5e3b
@ -575,7 +575,7 @@ if ($resql)
|
||||
// User owner
|
||||
if (! empty($arrayfields['owner']['checked']))
|
||||
{
|
||||
print '<td class="tdoverflowmax100">';
|
||||
print '<td class="'.($conf->browser->name != 'chrome'?'':'tdoverflowmax100').'">'; // With edge and chrom the td overflow is not supported correctly when content is not full text.
|
||||
if ($obj->fk_user_action > 0)
|
||||
{
|
||||
$userstatic->fetch($obj->fk_user_action);
|
||||
|
||||
@ -199,6 +199,7 @@ function getBrowserInfo($user_agent)
|
||||
|
||||
// Name
|
||||
if (preg_match('/firefox(\/|\s)([\d\.]*)/i', $user_agent, $reg)) { $name='firefox'; $version=$reg[2]; }
|
||||
elseif (preg_match('/edge(\/|\s)([\d\.]*)/i', $user_agent, $reg)) { $name='edge'; $version=$reg[2]; }
|
||||
elseif (preg_match('/chrome(\/|\s)([\d\.]+)/i', $user_agent, $reg)) { $name='chrome'; $version=$reg[2]; } // we can have 'chrome (Mozilla...) chrome x.y' in one string
|
||||
elseif (preg_match('/chrome/i', $user_agent, $reg)) { $name='chrome'; }
|
||||
elseif (preg_match('/iceweasel/i', $user_agent)) { $name='iceweasel'; }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user