diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2009-03-11 17:47:31 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2009-03-11 17:47:31 +0000 |
commit | 43540f441d6ec6624812c2d2397552ae084b8001 (patch) | |
tree | c5dd51ad63f3231cec41a73f31cc24a8fa21b333 /phpBB/style.php | |
parent | 0d4a76a8756b28a99e3ab95beb3bd9836047bd1b (diff) | |
download | forums-43540f441d6ec6624812c2d2397552ae084b8001.tar forums-43540f441d6ec6624812c2d2397552ae084b8001.tar.gz forums-43540f441d6ec6624812c2d2397552ae084b8001.tar.bz2 forums-43540f441d6ec6624812c2d2397552ae084b8001.tar.xz forums-43540f441d6ec6624812c2d2397552ae084b8001.zip |
for using the same cached file we need to have exact queries. :P
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9366 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/style.php')
-rw-r--r-- | phpBB/style.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/phpBB/style.php b/phpBB/style.php index 843c18b88d..78fd2a91b4 100644 --- a/phpBB/style.php +++ b/phpBB/style.php @@ -118,10 +118,11 @@ if ($id) $user_image_lang = (file_exists($phpbb_root_path . 'styles/' . $theme['imageset_path'] . '/imageset/' . $user['user_lang'])) ? $user['user_lang'] : $config['default_lang']; + // Same query in session.php $sql = 'SELECT * FROM ' . STYLES_IMAGESET_DATA_TABLE . ' WHERE imageset_id = ' . $theme['imageset_id'] . " - AND image_filename <> '' + AND image_filename <> '' AND image_lang IN ('" . $db->sql_escape($user_image_lang) . "', '')"; $result = $db->sql_query($sql, 3600); @@ -257,11 +258,11 @@ if ($id) case 'SRC': $replace[] = $imgs[$img]['src']; break; - + case 'WIDTH': $replace[] = $imgs[$img]['width']; break; - + case 'HEIGHT': $replace[] = $imgs[$img]['height']; break; |