mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-04 15:57:45 +02:00
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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user