1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-04 13:35:13 +02:00

[ticket/10820] add param and return to function

Add param and return in function docblock. Rename function
parameter to $user_agent.

PHPBB3-10820
This commit is contained in:
Dhruv 2013-04-27 20:57:51 +05:30
parent 687b04bcfc
commit ea7ece5d25

View File

@ -711,11 +711,14 @@ function file_gc()
/**
* Check if the browser is internet explorer version 7+
* @return true if ie7+
*
* @param string $user_agent User agent HTTP header
*
* @return bool true if ie7+
*/
function phpbb_is_greater_ie7($browser)
function phpbb_is_greater_ie7($user_agent)
{
return (bool) preg_match('/msie [^67]+\\.*;/', strtolower($browser));
return (bool) preg_match('/msie [^67]+\\.*;/', strtolower($user_agent));
}
?>