Skip to content

Commit

Permalink
Merge pull request #9914 from owncloud/fix-appframework-blank-template
Browse files Browse the repository at this point in the history
Fix template rendering for 'blank' templates
  • Loading branch information
DeepDiver1975 committed Jul 30, 2014
2 parents 47e7291 + 889088f commit 7d6221d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/public/appframework/http/templateresponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,10 @@ public function getRenderAs(){
* @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);
Expand Down

0 comments on commit 7d6221d

Please sign in to comment.