Expose parameters as variables to templates

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2018-01-25 19:04:17 +01:00 committed by Roeland Jago Douma
parent 2fcadf4606
commit e5df804834
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 4 additions and 1 deletions

View File

@ -166,8 +166,11 @@ class Base {
$l = $this->l10n;
$theme = $this->theme;
if( !is_null($additionalParams)) {
if(!is_null($additionalParams)) {
$_ = array_merge( $additionalParams, $this->vars );
foreach ($_ as $var => $value) {
${$var} = $value;
}
}
// Include