aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/style.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/style.php')
-rw-r--r--phpBB/style.php7
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;