diff options
author | plegall <plg@piwigo.org> | 2011-02-02 11:38:49 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2011-02-02 11:38:49 +0000 |
commit | dbc8782bf0ef3f7928d0830b663acdcaccaa8dfb (patch) | |
tree | 9161c3c1b6b9f497edb71305c34fcc3e9ab49558 | |
parent | af2b2e073394819d76124305f2d7dbd708964c14 (diff) |
bug 2175 fixed: do not use the HTML prefetch feature with Google Chrome because
it was sometimes making the photos impossible to show.
git-svn-id: http://piwigo.org/svn/branches/2.1@9054 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r-- | picture.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/picture.php b/picture.php index 0caddddd5..3d1dead49 100644 --- a/picture.php +++ b/picture.php @@ -639,7 +639,8 @@ $picture = trigger_event('picture_pictures_data', $picture); if (isset($picture['next']['image_url']) - and $picture['next']['is_picture'] ) + and $picture['next']['is_picture'] + and strpos($_SERVER['HTTP_USER_AGENT'], 'Chrome/') === false) { $template->assign('U_PREFETCH', $picture['next']['image_url'] ); } |