mirror of
https://github.com/friendica/friendica
synced 2025-04-27 18:30:12 +00:00
Remove get_app() in favor of DI::app()
This commit is contained in:
parent
5d20cd7e16
commit
f0eea6f875
26 changed files with 110 additions and 97 deletions
|
@ -5,6 +5,7 @@
|
|||
namespace Friendica\Render;
|
||||
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\DI;
|
||||
|
||||
/**
|
||||
* Smarty implementation of the Friendica template engine interface
|
||||
|
@ -32,7 +33,7 @@ class FriendicaSmartyEngine implements ITemplateEngine
|
|||
$s = new FriendicaSmarty();
|
||||
}
|
||||
|
||||
$r['$APP'] = \get_app();
|
||||
$r['$APP'] = DI::app();
|
||||
|
||||
// "middleware": inject variables into templates
|
||||
$arr = [
|
||||
|
@ -54,7 +55,7 @@ class FriendicaSmartyEngine implements ITemplateEngine
|
|||
|
||||
public function getTemplateFile($file, $root = '')
|
||||
{
|
||||
$a = \get_app();
|
||||
$a = DI::app();
|
||||
$template = new FriendicaSmarty();
|
||||
|
||||
// Make sure $root ends with a slash /
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue