aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/style.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-04-21 10:54:12 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-04-21 10:54:12 +0000
commit5ca1f737035c492ded45dda81e880d2767a9b502 (patch)
tree1f99961ed9445d1880eb2f952db3adb1fb5489c7 /phpBB/style.php
parentde998acda29cb0177b5dd8bbaf0973150606a7d7 (diff)
downloadforums-5ca1f737035c492ded45dda81e880d2767a9b502.tar
forums-5ca1f737035c492ded45dda81e880d2767a9b502.tar.gz
forums-5ca1f737035c492ded45dda81e880d2767a9b502.tar.bz2
forums-5ca1f737035c492ded45dda81e880d2767a9b502.tar.xz
forums-5ca1f737035c492ded45dda81e880d2767a9b502.zip
#25805
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8513 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/style.php')
-rw-r--r--phpBB/style.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/style.php b/phpBB/style.php
index 599434d087..cb2bcff115 100644
--- a/phpBB/style.php
+++ b/phpBB/style.php
@@ -95,7 +95,7 @@ if ($id)
$user = array('user_id' => ANONYMOUS);
}
- $sql = 'SELECT s.style_id, c.theme_data, c.theme_path, c.theme_name, c.theme_mtime, i.*, t.template_path
+ $sql = 'SELECT s.style_id, c.theme_id, c.theme_data, c.theme_path, c.theme_name, c.theme_mtime, i.*, t.template_path
FROM ' . STYLES_TABLE . ' s, ' . STYLES_TEMPLATE_TABLE . ' t, ' . STYLES_THEME_TABLE . ' c, ' . STYLES_IMAGESET_TABLE . ' i
WHERE s.style_id = ' . $id . '
AND t.template_id = s.template_id
@@ -193,7 +193,7 @@ if ($id)
);
$sql = 'UPDATE ' . STYLES_THEME_TABLE . ' SET ' . $db->sql_build_array('UPDATE', $sql_ary) . "
- WHERE theme_id = $id";
+ WHERE theme_id = {$theme['theme_id']}";
$db->sql_query($sql);
$cache->destroy('sql', STYLES_THEME_TABLE);