X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FRender%2FFriendicaSmarty.php;h=2b06c88c916b16d66c88822211de7d0aee433e7f;hb=2ec3a97393959e42d450e074271d2d622d25701f;hp=deabd3baf2c0e0a8c6f5bba0dcfe0b66f0364887;hpb=6bc865ff4d68170c83a675cfc75cdc025a192b15;p=friendica.git diff --git a/src/Render/FriendicaSmarty.php b/src/Render/FriendicaSmarty.php index deabd3baf2..2b06c88c91 100644 --- a/src/Render/FriendicaSmarty.php +++ b/src/Render/FriendicaSmarty.php @@ -1,16 +1,32 @@ . + * */ + namespace Friendica\Render; +use Friendica\DI; use Smarty; use Friendica\Core\Renderer; /** * Friendica extension of the Smarty3 template engine - * - * @author Hypolite Petovan */ class FriendicaSmarty extends Smarty { @@ -22,7 +38,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.