aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/download/file.php
diff options
context:
space:
mode:
authorDhruv <dhruv.goel92@gmail.com>2013-08-20 04:01:58 +0530
committerDhruv <dhruv.goel92@gmail.com>2013-08-20 04:14:20 +0530
commitaa3d2ef7a90d85aa70f5398ed62d26068ad73708 (patch)
treedf174f92e050c6af15da196ffcfc4985c38361d8 /phpBB/download/file.php
parentb08928ee1c9d5724d0b424cda67eefada5d54422 (diff)
downloadforums-aa3d2ef7a90d85aa70f5398ed62d26068ad73708.tar
forums-aa3d2ef7a90d85aa70f5398ed62d26068ad73708.tar.gz
forums-aa3d2ef7a90d85aa70f5398ed62d26068ad73708.tar.bz2
forums-aa3d2ef7a90d85aa70f5398ed62d26068ad73708.tar.xz
forums-aa3d2ef7a90d85aa70f5398ed62d26068ad73708.zip
[ticket/11802] replace $browser with $user->browser
PHPBB3-11802
Diffstat (limited to 'phpBB/download/file.php')
-rw-r--r--phpBB/download/file.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/download/file.php b/phpBB/download/file.php
index 22be27c922..ed33fc0962 100644
--- a/phpBB/download/file.php
+++ b/phpBB/download/file.php
@@ -285,7 +285,7 @@ else if (($display_cat == ATTACHMENT_CATEGORY_NONE/* || $display_cat == ATTACHME
$db->sql_query($sql);
}
-if ($display_cat == ATTACHMENT_CATEGORY_IMAGE && $mode === 'view' && (strpos($attachment['mimetype'], 'image') === 0) && (strpos(strtolower($browser), 'msie') !== false) && !phpbb_is_greater_ie_version($user->browser, 7))
+if ($display_cat == ATTACHMENT_CATEGORY_IMAGE && $mode === 'view' && (strpos($attachment['mimetype'], 'image') === 0) && (strpos(strtolower($user->browser), 'msie') !== false) && !phpbb_is_greater_ie_version($user->browser, 7))
{
wrap_img_in_html(append_sid($phpbb_root_path . 'download/file.' . $phpEx, 'id=' . $attachment['attach_id']), $attachment['real_filename']);
file_gc();