1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 12:48:26 +02:00

missing argument (response class)

This commit is contained in:
secretr
2012-05-04 13:11:40 +00:00
parent 9ac5587afa
commit e0770ffa3b

View File

@@ -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;
}
/**