Skip to content
Permalink
Browse files

slightly refactor to allow postprocessing content

  • Loading branch information...
flack committed Aug 11, 2019
1 parent 3f55e36 commit 08b78b0afe23309793127976ef7e71501a634177
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/midcom/response/styled.php
@@ -27,7 +27,7 @@ class midcom_response_styled extends Response
*/
private $context;
private $output;
private $rendered = false;
public function __construct(midcom_core_context $context, $root_element = 'ROOT')
{
@@ -38,15 +38,15 @@ public function __construct(midcom_core_context $context, $root_element = 'ROOT'
public function getContent()
{
if ($this->output === null) {
$this->output = $this->render();
if ($this->rendered === false) {
$this->content = $this->render();
}
return $this->output;
return parent::getContent();
}
public function send()
{
echo $this->getContent();
$this->sendContent();
}
private function render()

0 comments on commit 08b78b0

Please sign in to comment.
You can’t perform that action at this time.