mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
theme_name field missing from the query getting the database style content
git-svn-id: file:///svn/phpbb/trunk@5328 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
85b55fa701
commit
ca40260131
1 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@ if (!empty($_GET['id']) && !empty($_GET['sid']))
|
||||||
|
|
||||||
if ($user = $db->sql_fetchrow($result))
|
if ($user = $db->sql_fetchrow($result))
|
||||||
{
|
{
|
||||||
$sql = "SELECT s.style_id, c.theme_data, c.theme_path, c.theme_mtime, i.imageset_path, t.template_path
|
$sql = "SELECT s.style_id, c.theme_data, c.theme_path, c.theme_name, c.theme_mtime, i.imageset_path, t.template_path
|
||||||
FROM {$table_prefix}styles s, {$table_prefix}styles_template t, {$table_prefix}styles_theme c, {$table_prefix}styles_imageset i
|
FROM {$table_prefix}styles s, {$table_prefix}styles_template t, {$table_prefix}styles_theme c, {$table_prefix}styles_imageset i
|
||||||
WHERE s.style_id = $id
|
WHERE s.style_id = $id
|
||||||
AND t.template_id = s.template_id
|
AND t.template_id = s.template_id
|
||||||
|
@ -84,7 +84,7 @@ if (!empty($_GET['id']) && !empty($_GET['sid']))
|
||||||
|
|
||||||
header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time() + 3600));
|
header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time() + 3600));
|
||||||
header('Content-type: text/css');
|
header('Content-type: text/css');
|
||||||
|
|
||||||
// Parse Theme Data
|
// Parse Theme Data
|
||||||
$replace = array(
|
$replace = array(
|
||||||
'{T_THEME_PATH}' => "{$phpbb_root_path}styles/" . $theme['theme_path'] . '/theme',
|
'{T_THEME_PATH}' => "{$phpbb_root_path}styles/" . $theme['theme_path'] . '/theme',
|
||||||
|
|
Loading…
Add table
Reference in a new issue