Added disabled() method.
This commit is contained in:
parent
04501f2a39
commit
b304e0c89b
1 changed files with 12 additions and 0 deletions
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue