mirror of
https://github.com/friendica/friendica
synced 2025-05-01 19:04:23 +02:00
Fix formatting in Render/FriendicaSmarty*
This commit is contained in:
parent
99eb696386
commit
03c1f2cbf8
2 changed files with 5 additions and 1 deletions
|
@ -27,8 +27,10 @@ class FriendicaSmarty extends Smarty
|
|||
// setTemplateDir can be set to an array, which Smarty will parse in order.
|
||||
// The order is thus very important here
|
||||
$template_dirs = ['theme' => "view/theme/$theme/" . SMARTY3_TEMPLATE_FOLDER . "/"];
|
||||
if (x($a->theme_info, "extends"))
|
||||
if (x($a->theme_info, "extends")) {
|
||||
$template_dirs = $template_dirs + ['extends' => "view/theme/" . $a->theme_info["extends"] . "/" . SMARTY3_TEMPLATE_FOLDER . "/"];
|
||||
}
|
||||
|
||||
$template_dirs = $template_dirs + ['base' => "view/" . SMARTY3_TEMPLATE_FOLDER . "/"];
|
||||
$this->setTemplateDir($template_dirs);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue