[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 8d1bbc1e7f
commit f0f28f261c

View file

@ -711,11 +711,14 @@ function file_gc()
/** /**
* Check if the browser is internet explorer version 7+ * 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));
} }
?> ?>