diff options
author | Simon Rettberg | 2016-09-07 11:55:11 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-09-07 11:55:11 +0200 |
commit | 677e63dbe46d33ad6288cc37ac1cab4f65fa5bf0 (patch) | |
tree | 95ac308bf52ce57bfffb8bc7f72a3dbb040758e9 /inc | |
parent | [roomplanner] Show location name in title (diff) | |
download | slx-admin-677e63dbe46d33ad6288cc37ac1cab4f65fa5bf0.tar.gz slx-admin-677e63dbe46d33ad6288cc37ac1cab4f65fa5bf0.tar.xz slx-admin-677e63dbe46d33ad6288cc37ac1cab4f65fa5bf0.zip |
[Dashboard] Add option to disable dashboard creation
Diffstat (limited to 'inc')
-rw-r--r-- | inc/dashboard.inc.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/inc/dashboard.inc.php b/inc/dashboard.inc.php index 01572461..2cf0b494 100644 --- a/inc/dashboard.inc.php +++ b/inc/dashboard.inc.php @@ -5,9 +5,17 @@ class Dashboard private static $iconCache = array(); private static $subMenu = array(); + private static $disabled = false; + + public static function disable() + { + self::$disabled = true; + } public static function createMenu() { + if (self::$disabled) + return; global $MENU_CAT_OVERRIDE; $modByCategory = array(); $modById = array(); |