1
0
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:
SecretR
2014-12-10 15:06:46 +02:00
parent 26634f2bfd
commit b7942691e0

View File

@@ -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')
{ {