mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
Merge pull request #2990 from Senky/ticket/10985
[ticket/10985] Error bbcode.html not found when updating with custom style inheriting from prosilver
This commit is contained in:
@@ -135,6 +135,11 @@ class bbcode
|
|||||||
$this->template_bitfield = new bitfield($user->theme['bbcode_bitfield']);
|
$this->template_bitfield = new bitfield($user->theme['bbcode_bitfield']);
|
||||||
$this->template_filename = $phpbb_root_path . 'styles/' . $user->theme['template_path'] . '/template/bbcode.html';
|
$this->template_filename = $phpbb_root_path . 'styles/' . $user->theme['template_path'] . '/template/bbcode.html';
|
||||||
|
|
||||||
|
if (empty($user->theme['template_inherits_id']) && !empty($template->orig_tpl_inherits_id))
|
||||||
|
{
|
||||||
|
$user->theme['template_inherits_id'] = $template->orig_tpl_inherits_id;
|
||||||
|
}
|
||||||
|
|
||||||
if (!@file_exists($this->template_filename))
|
if (!@file_exists($this->template_filename))
|
||||||
{
|
{
|
||||||
if (isset($user->theme['template_inherits_id']) && $user->theme['template_inherits_id'])
|
if (isset($user->theme['template_inherits_id']) && $user->theme['template_inherits_id'])
|
||||||
|
Reference in New Issue
Block a user