namespace Friendica\Render;
use Friendica\Core\Hook;
+use Friendica\DI;
/**
* Smarty implementation of the Friendica template engine interface
$s = new FriendicaSmarty();
}
- $r['$APP'] = \get_app();
+ $r['$APP'] = DI::app();
// "middleware": inject variables into templates
$arr = [
public function getTemplateFile($file, $root = '')
{
- $a = \get_app();
+ $a = DI::app();
$template = new FriendicaSmarty();
// Make sure $root ends with a slash /