]> git.mxchange.org Git - friendica.git/blobdiff - include/friendica_smarty.php
allow Smarty use on international templates
[friendica.git] / include / friendica_smarty.php
index 9ad14ad8a4738e610e6c346ebb14a56ec1720b8b..b3f0d18a01d32509f1ca8345c6f0403eff148d51 100644 (file)
@@ -24,8 +24,11 @@ class FriendicaSmarty extends Smarty {
                $this->setConfigDir('view/smarty3/config/');
                $this->setCacheDir('view/smarty3/cache/');
 
-               $this->left_delimiter = $a->smarty3_ldelim;
-               $this->right_delimiter = $a->smarty3_rdelim;
+               $this->left_delimiter = $a->get_template_ldelim('smarty3');
+               $this->right_delimiter = $a->get_template_rdelim('smarty3');
+
+               // Don't report errors so verbosely
+               $this->error_reporting = E_ALL & ~E_NOTICE;
        }
 
        function parsed($template = '') {