Back to SiteApplication class

Method setDetectBrowser

public bool
setDetectBrowser
(mixed $state = false)
Set the current state of the detect browser option.
Parameters
  • bool $state The new state of the detect browser option
Returns
  • bool The previous state
Since
  • 3.2

Method setDetectBrowser - Source code

/**
 * Set the current state of the detect browser option.
 *
 * @param   boolean  $state  The new state of the detect browser option
 *
 * @return	boolean	 The previous state
 *
 * @since	3.2
 */
public function setDetectBrowser($state = false)
{
    $old = $this->getDetectBrowser();
    $this->detect_browser = $state;
    return $old;
}