Added disabled() method.

This commit is contained in:
Josh Sherman 2010-03-11 21:24:39 -05:00
parent 04501f2a39
commit b304e0c89b

View file

@ -115,6 +115,18 @@ class Config
return self::$instance;
}
/**
* Gets status of site
*
* Checks the site->disabled variable for truth.
*
* @return boolean whether or not the site is disabled
*/
public function disabled()
{
return (isset($this->modules->site->disabled) && $this->modules->site->disabled == 'true');
}
}
?>