diff options
author | Dhruv <dhruv.goel92@gmail.com> | 2013-04-27 20:57:51 +0530 |
---|---|---|
committer | Dhruv <dhruv.goel92@gmail.com> | 2013-04-27 20:57:51 +0530 |
commit | f0f28f261c243ae57e13349ebc386a83c689a568 (patch) | |
tree | 33cf60f6fa3229c1207365efb5229a951e1c76b6 /phpBB/download | |
parent | 8d1bbc1e7f3bc8366ed127bd129c239f1b62b5c1 (diff) | |
download | forums-f0f28f261c243ae57e13349ebc386a83c689a568.tar forums-f0f28f261c243ae57e13349ebc386a83c689a568.tar.gz forums-f0f28f261c243ae57e13349ebc386a83c689a568.tar.bz2 forums-f0f28f261c243ae57e13349ebc386a83c689a568.tar.xz forums-f0f28f261c243ae57e13349ebc386a83c689a568.zip |
[ticket/10820] add param and return to function
Add param and return in function docblock. Rename function
parameter to $user_agent.
PHPBB3-10820
Diffstat (limited to 'phpBB/download')
-rw-r--r-- | phpBB/download/file.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/phpBB/download/file.php b/phpBB/download/file.php index 4b2f34f94d..378c6e64b1 100644 --- a/phpBB/download/file.php +++ b/phpBB/download/file.php @@ -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)); } ?>
\ No newline at end of file |