mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Render mode can be disabled, bad checks removed
This commit is contained in:
@@ -3918,22 +3918,19 @@ class eResponse
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param string $render_mod
|
* @param string $render_mod
|
||||||
* @param string $ns
|
* @param mixed $ns
|
||||||
* @return eResponse
|
* @return eResponse
|
||||||
*/
|
*/
|
||||||
function setRenderMod($render_mod, $ns = 'default')
|
function setRenderMod($render_mod, $ns = 'default')
|
||||||
{
|
{
|
||||||
if(!is_string($ns) || empty($ns))
|
$this->_render_mod[$ns] = $render_mod;
|
||||||
{
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
$this->_render_mod[$ns] = (string) $render_mod;
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve render mod
|
* Retrieve render mod
|
||||||
* @param string $ns
|
* @param mixed $ns
|
||||||
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
function getRenderMod($ns = 'default')
|
function getRenderMod($ns = 'default')
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user