mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[feature/remove-db-styles] Missed a few template DB bits in acp_styles.
PHPBB3-9741
This commit is contained in:
parent
23415170cb
commit
ad11565ace
1 changed files with 3 additions and 23 deletions
|
@ -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(
|
||||||
|
|
Loading…
Add table
Reference in a new issue