From 677e63dbe46d33ad6288cc37ac1cab4f65fa5bf0 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 7 Sep 2016 11:55:11 +0200 Subject: [Dashboard] Add option to disable dashboard creation --- inc/dashboard.inc.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'inc/dashboard.inc.php') 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(); -- cgit v1.2.3-55-g7522