1
0
Fork 0

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

This commit is contained in:
Philipp Holzer 2020-01-04 23:42:01 +01:00
commit f0eea6f875
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
26 changed files with 110 additions and 97 deletions

View file

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