summaryrefslogtreecommitdiffstats
path: root/lib/private/Template
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-01-25 19:04:17 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-02-27 12:25:52 +0100
commite5df80483433962aeb7f65175f98bdd6fe7635de (patch)
treed4a2afd67ed02d472339d77cb5d131250e836a3b /lib/private/Template
parent2fcadf46062b9b748fd943d349da8226e575a07d (diff)
downloadnextcloud-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.php5
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