Merge pull request #2021 from fabrixxm/php_arrays
Use old style array declaration
This commit is contained in:
commit
0d6ec70a68
|
@ -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'];
|
||||
|
||||
|
|
Loading…
Reference in a new issue