X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Ffriendica_smarty.php;h=9ba2d2a744dcc88fea320253dec337d54345fefd;hb=df312402e46cc3cdc788c73d0c41874b6c71fcb3;hp=3c2dc7b9150e242b56b363ab62bf1c8c57365917;hpb=ed03a941edaece26e8c72f3e0963cacb48e60b6b;p=friendica.git diff --git a/include/friendica_smarty.php b/include/friendica_smarty.php index 3c2dc7b915..9ba2d2a744 100644 --- a/include/friendica_smarty.php +++ b/include/friendica_smarty.php @@ -60,12 +60,14 @@ class FriendicaSmartyEngine implements ITemplateEngine { $template = $s; $s = new FriendicaSmarty(); } + + $r['$APP'] = get_app(); // "middleware": inject variables into templates - $arr = [ + $arr = array( "template"=> basename($s->filename), "vars" => $r - ]; + ); call_hooks("template_vars", $arr); $r = $arr['vars'];