diff options
author | Björn Schießle <bjoern@schiessle.org> | 2013-07-24 06:42:52 -0700 |
---|---|---|
committer | Björn Schießle <bjoern@schiessle.org> | 2013-07-24 06:42:52 -0700 |
commit | 651479322b234eefff15031b188b353793cc7af5 (patch) | |
tree | 10d154129e3bc54d4fa5b2b3fab96b3f6293b25f /lib/template | |
parent | 98858e6f00bbafc6b93a9c01b3ad8a6d826d5373 (diff) | |
parent | 003ae7b9165b6493abe75d1d81b5a763efef7280 (diff) | |
download | nextcloud-server-651479322b234eefff15031b188b353793cc7af5.tar.gz nextcloud-server-651479322b234eefff15031b188b353793cc7af5.zip |
Merge pull request #4177 from owncloud/move_defaults_to_template_constructor
Move defaults to template constructor
Diffstat (limited to 'lib/template')
-rw-r--r-- | lib/template/base.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/template/base.php b/lib/template/base.php index c7ddaa2e8e1..88941bc7132 100644 --- a/lib/template/base.php +++ b/lib/template/base.php @@ -12,12 +12,14 @@ class Base { private $template; // The template private $vars; // Vars private $l10n; // The l10n-Object + private $theme; // theme defaults - public function __construct( $template, $requesttoken, $l10n ) { + public function __construct( $template, $requesttoken, $l10n, $theme ) { $this->vars = array(); $this->vars['requesttoken'] = $requesttoken; $this->l10n = $l10n; $this->template = $template; + $this->theme = $theme; } protected function getAppTemplateDirs($theme, $app, $serverroot, $app_dir) { @@ -113,6 +115,7 @@ class Base { // Register the variables $_ = $this->vars; $l = $this->l10n; + $theme = $this->theme; if( !is_null($additionalparams)) { $_ = array_merge( $additionalparams, $this->vars ); |