Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Müller <DeepDiver1975@users.noreply.github.com>2016-04-12 13:49:11 +0300
committerThomas Müller <DeepDiver1975@users.noreply.github.com>2016-04-12 13:49:11 +0300
commitfdee771aca39f394c940edfcaa5a15826b078974 (patch)
tree400c956152f57c14bdfae094bbd3de265dd7baba /lib/private/template.php
parent276b8a583112203b9b71e4ac2b372e50ca62df9b (diff)
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.php8
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 = '';