X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Ffriendica_smarty.php;h=99dc12bf8d9a27c96d6a2b79bed01e9939ad2aa0;hb=143e1a4a836e1fe4d05ab5d1c6008aa0198d2db5;hp=3c2dc7b9150e242b56b363ab62bf1c8c57365917;hpb=ed03a941edaece26e8c72f3e0963cacb48e60b6b;p=friendica.git diff --git a/include/friendica_smarty.php b/include/friendica_smarty.php index 3c2dc7b915..99dc12bf8d 100644 --- a/include/friendica_smarty.php +++ b/include/friendica_smarty.php @@ -62,10 +62,10 @@ class FriendicaSmartyEngine implements ITemplateEngine { } // "middleware": inject variables into templates - $arr = [ + $arr = array( "template"=> basename($s->filename), "vars" => $r - ]; + ); call_hooks("template_vars", $arr); $r = $arr['vars'];