diff --git a/e107_handlers/application.php b/e107_handlers/application.php index ebf444c5c..9c817ff63 100644 --- a/e107_handlers/application.php +++ b/e107_handlers/application.php @@ -3530,15 +3530,19 @@ class eResponse /** * Get content * @param str $ns + * @param boolean $reset * @return string */ - public function getBody($ns = 'default') + public function getBody($ns = 'default', $reset = false) { if(!isset($this->_body[$ns])) { $this->_body[$ns] = ''; } - return $this->_body[$ns]; + $ret = $this->_body[$ns]; + if($reset) unset($this->_body[$ns]); + + return $ret; } /**