Expose parameters as variables to templates
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
2fcadf4606
commit
e5df804834
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue