mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
missing argument (response class)
This commit is contained in:
@@ -3530,15 +3530,19 @@ class eResponse
|
|||||||
/**
|
/**
|
||||||
* Get content
|
* Get content
|
||||||
* @param str $ns
|
* @param str $ns
|
||||||
|
* @param boolean $reset
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function getBody($ns = 'default')
|
public function getBody($ns = 'default', $reset = false)
|
||||||
{
|
{
|
||||||
if(!isset($this->_body[$ns]))
|
if(!isset($this->_body[$ns]))
|
||||||
{
|
{
|
||||||
$this->_body[$ns] = '';
|
$this->_body[$ns] = '';
|
||||||
}
|
}
|
||||||
return $this->_body[$ns];
|
$ret = $this->_body[$ns];
|
||||||
|
if($reset) unset($this->_body[$ns]);
|
||||||
|
|
||||||
|
return $ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user