]> git.mxchange.org Git - friendica.git/blobdiff - include/friendica_smarty.php
Merge pull request #3310 from annando/1704-probing
[friendica.git] / include / friendica_smarty.php
index 3c2dc7b9150e242b56b363ab62bf1c8c57365917..9ba2d2a744dcc88fea320253dec337d54345fefd 100644 (file)
@@ -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'];