aboutsummaryrefslogtreecommitdiffstats
path: root/lib/template.php
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-07-24 11:51:21 +0200
committerBjörn Schießle <schiessle@owncloud.com>2013-07-24 11:51:21 +0200
commit75fd6d4fde4cd6d9eda5e6b944739f1f2798447d (patch)
tree2d04d64bcdeb2ea13de68b9606307ebf799aeb87 /lib/template.php
parent2622839fcfb360eafc6d670885ca265ebed1433c (diff)
downloadnextcloud-server-75fd6d4fde4cd6d9eda5e6b944739f1f2798447d.tar.gz
nextcloud-server-75fd6d4fde4cd6d9eda5e6b944739f1f2798447d.zip
initialize OC_Defaults in template constructorX
Diffstat (limited to 'lib/template.php')
-rw-r--r--lib/template.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/template.php b/lib/template.php
index d17be753db8..9b2c1211e61 100644
--- a/lib/template.php
+++ b/lib/template.php
@@ -55,6 +55,7 @@ class OC_Template extends \OC\Template\Base {
$parts = explode('/', $app); // fix translation when app is something like core/lostpassword
$l10n = OC_L10N::get($parts[0]);
+ $themeDefaults = new OC_Defaults();
list($path, $template) = $this->findTemplate($theme, $app, $name, $fext);
@@ -62,7 +63,7 @@ class OC_Template extends \OC\Template\Base {
$this->renderas = $renderas;
$this->path = $path;
- parent::__construct($template, $requesttoken, $l10n);
+ parent::__construct($template, $requesttoken, $l10n, $themeDefaults);
// Some headers to enhance security
header('X-XSS-Protection: 1; mode=block'); // Enforce browser based XSS filters