diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-01-25 19:04:17 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-02-27 12:25:52 +0100 |
commit | e5df80483433962aeb7f65175f98bdd6fe7635de (patch) | |
tree | d4a2afd67ed02d472339d77cb5d131250e836a3b /lib/private/Template | |
parent | 2fcadf46062b9b748fd943d349da8226e575a07d (diff) | |
download | nextcloud-server-e5df80483433962aeb7f65175f98bdd6fe7635de.tar.gz nextcloud-server-e5df80483433962aeb7f65175f98bdd6fe7635de.zip |
Expose parameters as variables to templates
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Template')
-rw-r--r-- | lib/private/Template/Base.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/Template/Base.php b/lib/private/Template/Base.php index 18cf6324089..09be5ab7ddf 100644 --- a/lib/private/Template/Base.php +++ b/lib/private/Template/Base.php @@ -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 |