X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FRender%2FFriendicaSmarty.php;h=deabd3baf2c0e0a8c6f5bba0dcfe0b66f0364887;hb=295d90d496a56217383481fa7a0153e0ac48e38a;hp=8ecea05186fbbbf3e3e2beb0bcc69fc127e11ffa;hpb=5e60fa8210b502797209de770780d6d7ba81b86c;p=friendica.git diff --git a/src/Render/FriendicaSmarty.php b/src/Render/FriendicaSmarty.php index 8ecea05186..deabd3baf2 100644 --- a/src/Render/FriendicaSmarty.php +++ b/src/Render/FriendicaSmarty.php @@ -22,7 +22,7 @@ class FriendicaSmarty extends Smarty { parent::__construct(); - $a = get_app(); + $a = \get_app(); $theme = $a->getCurrentTheme(); // setTemplateDir can be set to an array, which Smarty will parse in order. @@ -42,6 +42,8 @@ class FriendicaSmarty extends Smarty $this->left_delimiter = Renderer::getTemplateLeftDelimiter('smarty3'); $this->right_delimiter = Renderer::getTemplateRightDelimiter('smarty3'); + $this->escape_html = true; + // Don't report errors so verbosely $this->error_reporting = E_ALL & ~E_NOTICE; }