make smarty error reporting a bit less chatty

This commit is contained in:
friendica 2012-12-30 00:29:07 -08:00
parent 4b2de6fdf2
commit 215a7f139c
3 changed files with 4 additions and 3 deletions

View file

@ -23,6 +23,7 @@ function replace_macros($s,$r) {
if(gettype($s) === 'string') {
$template = $s;
$s = new FriendicaSmarty();
$s->error_reporting = E_ALL & ~E_NOTICE;
}
foreach($r as $key=>$value) {
if($key[0] === '$') {