summaryrefslogtreecommitdiffstats
path: root/inc/dashboard.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2016-09-07 11:55:11 +0200
committerSimon Rettberg2016-09-07 11:55:11 +0200
commit677e63dbe46d33ad6288cc37ac1cab4f65fa5bf0 (patch)
tree95ac308bf52ce57bfffb8bc7f72a3dbb040758e9 /inc/dashboard.inc.php
parent[roomplanner] Show location name in title (diff)
downloadslx-admin-677e63dbe46d33ad6288cc37ac1cab4f65fa5bf0.tar.gz
slx-admin-677e63dbe46d33ad6288cc37ac1cab4f65fa5bf0.tar.xz
slx-admin-677e63dbe46d33ad6288cc37ac1cab4f65fa5bf0.zip
[Dashboard] Add option to disable dashboard creation
Diffstat (limited to 'inc/dashboard.inc.php')
-rw-r--r--inc/dashboard.inc.php8
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();