diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-07-26 00:04:49 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-07-30 10:33:55 +0200 |
commit | 185e41afddb6daa51b2a94123b90f84d715bd413 (patch) | |
tree | 0470f90d7e7e10d0ae8272a5e23c6b6e8b357a00 /lib/public | |
parent | eb665bf3c8cad7672ec5608d1e86f86a633df595 (diff) | |
download | nextcloud-server-185e41afddb6daa51b2a94123b90f84d715bd413.tar.gz nextcloud-server-185e41afddb6daa51b2a94123b90f84d715bd413.zip |
Fix template rendering for 'blank' templates
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/appframework/http/templateresponse.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/public/appframework/http/templateresponse.php b/lib/public/appframework/http/templateresponse.php index 02589f4e2a4..c74d3b60254 100644 --- a/lib/public/appframework/http/templateresponse.php +++ b/lib/public/appframework/http/templateresponse.php @@ -134,8 +134,10 @@ class TemplateResponse extends Response { * @return string the rendered html */ public function render(){ + // \OCP\Template needs an empty string instead of 'blank' for an unwrapped response + $renderAs = $this->renderAs === 'blank' ? '' : $this->renderAs; - $template = new \OCP\Template($this->appName, $this->templateName, $this->renderAs); + $template = new \OCP\Template($this->appName, $this->templateName, $renderAs); foreach($this->params as $key => $value){ $template->assign($key, $value); |