X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FRender%2FFriendicaSmarty.php;h=deabd3baf2c0e0a8c6f5bba0dcfe0b66f0364887;hb=5ed48ba4257b3017af5833e65a5ce58a23a35df3;hp=8ecea05186fbbbf3e3e2beb0bcc69fc127e11ffa;hpb=458981f75cff2427976c9abc787eadf8e9e6267f;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; }