]> git.mxchange.org Git - friendica.git/blobdiff - src/Render/FriendicaSmarty.php
Remove get_app() in favor of DI::app()
[friendica.git] / src / Render / FriendicaSmarty.php
index deabd3baf2c0e0a8c6f5bba0dcfe0b66f0364887..83b6322df2425e1a96a882467121163279e37539 100644 (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.