diff options
author | Thomas Müller <DeepDiver1975@users.noreply.github.com> | 2016-04-12 12:49:11 +0200 |
---|---|---|
committer | Thomas Müller <DeepDiver1975@users.noreply.github.com> | 2016-04-12 12:49:11 +0200 |
commit | fdee771aca39f394c940edfcaa5a15826b078974 (patch) | |
tree | 400c956152f57c14bdfae094bbd3de265dd7baba /lib/private/template.php | |
parent | 276b8a583112203b9b71e4ac2b372e50ca62df9b (diff) | |
download | nextcloud-server-fdee771aca39f394c940edfcaa5a15826b078974.tar.gz nextcloud-server-fdee771aca39f394c940edfcaa5a15826b078974.zip |
Add unit testing capabilities for templates (#23708)
Add unit testing capabilities for templates
Diffstat (limited to 'lib/private/template.php')
-rw-r--r-- | lib/private/template.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/private/template.php b/lib/private/template.php index d39abdcd378..c6542356fac 100644 --- a/lib/private/template.php +++ b/lib/private/template.php @@ -34,6 +34,8 @@ * */ +use OC\TemplateLayout; + require_once __DIR__.'/template/functions.php'; /** @@ -218,11 +220,11 @@ class OC_Template extends \OC\Template\Base { * This function process the template. If $this->renderAs is set, it * will produce a full page. */ - public function fetchPage() { - $data = parent::fetchPage(); + public function fetchPage($additionalParams = null) { + $data = parent::fetchPage($additionalParams); if( $this->renderAs ) { - $page = new \OC\TemplateLayout($this->renderAs, $this->app); + $page = new TemplateLayout($this->renderAs, $this->app); // Add custom headers $headers = ''; |