mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
Replace current_theme() and current_theme_url() calls
This commit is contained in:
parent
3213715b60
commit
fde3d6f870
9 changed files with 22 additions and 19 deletions
|
@ -22,7 +22,7 @@ class FriendicaSmarty extends Smarty
|
|||
parent::__construct();
|
||||
|
||||
$a = get_app();
|
||||
$theme = current_theme();
|
||||
$theme = $a->getCurrentTheme();
|
||||
|
||||
// setTemplateDir can be set to an array, which Smarty will parse in order.
|
||||
// The order is thus very important here
|
||||
|
|
|
@ -62,7 +62,7 @@ class FriendicaSmartyEngine implements ITemplateEngine
|
|||
$root = $root . '/';
|
||||
}
|
||||
|
||||
$theme = current_theme();
|
||||
$theme = $a->getCurrentTheme();
|
||||
$filename = $template::SMARTY3_TEMPLATE_FOLDER . '/' . $file;
|
||||
|
||||
if (file_exists("{$root}view/theme/$theme/$filename")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue