mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
let's try to correctly catch some conditions as well as letting the cache being updated correctly
git-svn-id: file:///svn/phpbb/trunk@7816 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
e8036a3131
commit
855947f566
1 changed files with 7 additions and 0 deletions
|
@ -739,6 +739,8 @@ parse_css_file = {PARSE_CSS_FILE}
|
||||||
// destroy the cached version of the template (filename without extension)
|
// destroy the cached version of the template (filename without extension)
|
||||||
$this->clear_template_cache($template_info, array(substr($template_file, 0, -5)));
|
$this->clear_template_cache($template_info, array(substr($template_file, 0, -5)));
|
||||||
|
|
||||||
|
$cache->destroy('sql', STYLES_TABLE);
|
||||||
|
|
||||||
add_log('admin', 'LOG_TEMPLATE_EDIT', $template_info['template_name'], $template_file);
|
add_log('admin', 'LOG_TEMPLATE_EDIT', $template_info['template_name'], $template_file);
|
||||||
trigger_error($user->lang['TEMPLATE_FILE_UPDATED'] . $additional . adm_back_link($this->u_action . "&action=edit&id=$template_id&text_rows=$text_rows&template_file=$template_file"));
|
trigger_error($user->lang['TEMPLATE_FILE_UPDATED'] . $additional . adm_back_link($this->u_action . "&action=edit&id=$template_id&text_rows=$text_rows&template_file=$template_file"));
|
||||||
}
|
}
|
||||||
|
@ -2164,6 +2166,11 @@ parse_css_file = {PARSE_CSS_FILE}
|
||||||
$db->sql_query($sql);
|
$db->sql_query($sql);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (!$store_db && !$safe_mode)
|
||||||
|
{
|
||||||
|
$store_db = 1;
|
||||||
|
$error[] = $user->lang['EDIT_TEMPLATE_STORED_DB'];
|
||||||
|
}
|
||||||
else if ($store_db)
|
else if ($store_db)
|
||||||
{
|
{
|
||||||
$filelist = filelist("{$phpbb_root_path}styles/{$style_row['template_path']}/template", '', 'html');
|
$filelist = filelist("{$phpbb_root_path}styles/{$style_row['template_path']}/template", '', 'html');
|
||||||
|
|
Loading…
Add table
Reference in a new issue