Remove get_app() in favor of DI::app()

This commit is contained in:
nupplaPhil
2020-01-04 23:42:01 +01:00
parent 5d20cd7e16
commit f0eea6f875
26 changed files with 110 additions and 97 deletions

View File

@@ -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 /