mirror of
https://github.com/Mibew/mibew.git
synced 2025-03-03 18:38:31 +03:00
Remove unused "is_agent_opera95" function
This commit is contained in:
parent
4ba7804b88
commit
da54de32b9
@ -171,27 +171,6 @@ function get_known_user_agents()
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if browser is opera 9.5 or greater
|
|
||||||
*
|
|
||||||
* @return bool Result of comparison of visitor browser and Opera 9.5
|
|
||||||
*/
|
|
||||||
function is_agent_opera95()
|
|
||||||
{
|
|
||||||
$user_agent = strtolower($_SERVER['HTTP_USER_AGENT']);
|
|
||||||
if (strstr($user_agent, "opera")) {
|
|
||||||
if (preg_match("/opera[\\s\/]?(\\d+(\\.\\d+)?)/", $user_agent, $matches)) {
|
|
||||||
$ver = $matches[1];
|
|
||||||
|
|
||||||
if ($ver >= "9.5") {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if browser is opera with mac os
|
* Check if browser is opera with mac os
|
||||||
*
|
*
|
||||||
@ -487,9 +466,6 @@ function setup_chatview(Thread $thread)
|
|||||||
$data['chat']['messageForm']['ignoreCtrl'] = false;
|
$data['chat']['messageForm']['ignoreCtrl'] = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set some browser info
|
|
||||||
$data['isOpera95'] = is_agent_opera95();
|
|
||||||
|
|
||||||
// Load dialogs style options
|
// Load dialogs style options
|
||||||
$chat_style = new ChatStyle(ChatStyle::getCurrentStyle());
|
$chat_style = new ChatStyle(ChatStyle::getCurrentStyle());
|
||||||
$style_config = $chat_style->getConfigurations();
|
$style_config = $chat_style->getConfigurations();
|
||||||
|
Loading…
Reference in New Issue
Block a user