mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00: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
1 changed files with 6 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue