aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/download/file.php9
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