diff options
author | Henry Sudhof <kellanved@phpbb.com> | 2008-07-28 14:24:37 +0000 |
---|---|---|
committer | Henry Sudhof <kellanved@phpbb.com> | 2008-07-28 14:24:37 +0000 |
commit | eda1d40861fb5a2b74e7e5ade618cc9fa83cafd1 (patch) | |
tree | 14514edf6dc3f86506779b4e8a9d183d88b4ce9c /phpBB/includes/functions_template.php | |
parent | 6b07f206d581c1404c15875eabd73b9a3d46a826 (diff) | |
download | forums-eda1d40861fb5a2b74e7e5ade618cc9fa83cafd1.tar forums-eda1d40861fb5a2b74e7e5ade618cc9fa83cafd1.tar.gz forums-eda1d40861fb5a2b74e7e5ade618cc9fa83cafd1.tar.bz2 forums-eda1d40861fb5a2b74e7e5ade618cc9fa83cafd1.tar.xz forums-eda1d40861fb5a2b74e7e5ade618cc9fa83cafd1.zip |
Okay. Frozen, we never said anything about it being permafrost. Also, this is not 100% tested, expect troubel with store_db (I'm waiting for the bug reports)
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8697 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_template.php')
-rw-r--r-- | phpBB/includes/functions_template.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/functions_template.php b/phpBB/includes/functions_template.php index 17d3328427..1e7fbaa8e6 100644 --- a/phpBB/includes/functions_template.php +++ b/phpBB/includes/functions_template.php @@ -72,15 +72,15 @@ class template_compile if ($store_in_db) { global $db, $user; - + $sql_ary = array( - 'template_id' => $user->theme['template_id'], + 'template_id' => $this->template->files_template[$handle], 'template_filename' => $this->template->filename[$handle], 'template_included' => '', 'template_mtime' => time(), 'template_data' => trim(@file_get_contents($this->template->files[$handle])), ); - + $sql = 'INSERT INTO ' . STYLES_TEMPLATE_DATA_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary); $db->sql_query($sql); } |