Skip to content
Snippets Groups Projects
Commit 7d6221d2 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #9914 from owncloud/fix-appframework-blank-template

Fix template rendering for 'blank' templates
parents 47e72917 889088f7
Branches
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment