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

Render mode can be disabled, bad checks removed

This commit is contained in:
SecretR 2014-12-10 15:06:46 +02:00
parent 26634f2bfd
commit b7942691e0

@ -3918,22 +3918,19 @@ class eResponse
/**
*
* @param string $render_mod
* @param string $ns
* @param mixed $ns
* @return eResponse
*/
function setRenderMod($render_mod, $ns = 'default')
{
if(!is_string($ns) || empty($ns))
{
return $this;
}
$this->_render_mod[$ns] = (string) $render_mod;
$this->_render_mod[$ns] = $render_mod;
return $this;
}
/**
* Retrieve render mod
* @param string $ns
* @param mixed $ns
* @return mixed
*/
function getRenderMod($ns = 'default')
{