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
|
@ -4,6 +4,7 @@
|
|||
*/
|
||||
namespace Friendica\Render;
|
||||
|
||||
use Friendica\DI;
|
||||
use Smarty;
|
||||
use Friendica\Core\Renderer;
|
||||
|
||||
|
@ -22,7 +23,7 @@ class FriendicaSmarty extends Smarty
|
|||
{
|
||||
parent::__construct();
|
||||
|
||||
$a = \get_app();
|
||||
$a = DI::app();
|
||||
$theme = $a->getCurrentTheme();
|
||||
|
||||
// setTemplateDir can be set to an array, which Smarty will parse in order.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue