[feature/remove-db-styles] Missed a few template DB bits in acp_styles.

PHPBB3-9741
This commit is contained in:
Chris Smith 2011-09-20 18:46:45 +01:00
parent 23415170cb
commit ad11565ace

View file

@ -748,30 +748,10 @@ version = {VERSION}
$file_tpl = "{$phpbb_root_path}styles/{$template_row['template_path']}/template/$tpl_file.html"; $file_tpl = "{$phpbb_root_path}styles/{$template_row['template_path']}/template/$tpl_file.html";
$inherited = false; $inherited = false;
if (isset($template_row['template_inherits_id']) && $template_row['template_inherits_id']) if (isset($template_row['template_inherits_id']) && $template_row['template_inherits_id'] && !file_exists($file_tpl))
{ {
if (!$template_row['template_storedb']) $file_tpl = "{$phpbb_root_path}styles/{$template_row['template_inherit_path']}/template/$tpl_file.html";
{ $inherited = true;
if (!file_exists($file_tpl))
{
$file_tpl = "{$phpbb_root_path}styles/{$template_row['template_inherit_path']}/template/$tpl_file.html";
$inherited = true;
}
}
else
{
if ($file_template_db[$file . '.html'] == $template_row['template_inherits_id'])
{
$file_tpl = "{$phpbb_root_path}styles/{$template_row['template_inherit_path']}/template/$tpl_file.html";
$inherited = true;
}
}
}
// Correct the filename if it is stored in database and the file is in a subfolder.
if ($template_row['template_storedb'])
{
$file = str_replace('.', '/', $file);
} }
$template->assign_block_vars('file', array( $template->assign_block_vars('file', array(