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:
parent
687b04bcfc
commit
ea7ece5d25
@ -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));
|
||||
}
|
||||
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user