From e0770ffa3be388f5af48383e3d39714de17c1e08 Mon Sep 17 00:00:00 2001 From: secretr Date: Fri, 4 May 2012 13:11:40 +0000 Subject: [PATCH] missing argument (response class) --- e107_handlers/application.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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; } /**