From ac7bcbd1b2cd4d24614bd60cb2fdea79adb80cd8 Mon Sep 17 00:00:00 2001 From: Inovea Conseil Date: Thu, 29 Aug 2019 10:59:36 +0200 Subject: [PATCH] Add main feature level --- htdocs/core/class/infobox.class.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/infobox.class.php b/htdocs/core/class/infobox.class.php index c73d32c8301..978501bfd1e 100644 --- a/htdocs/core/class/infobox.class.php +++ b/htdocs/core/class/infobox.class.php @@ -35,7 +35,13 @@ class InfoBox */ public static function getListOfPagesForBoxes() { - return array(0 => 'Home', + global $conf; + + if($conf->global->MAIN_FEATURES_LEVEL < 2) + return array(0 => 'Home'); + else + { + return array(0 => 'Home', 1 => 'userhome', 2 => 'membersindex', 3 => 'thirdpartiesindex', @@ -62,6 +68,7 @@ class InfoBox 24 => 'expensereportindex', 25 => 'mailingindex', 26 => 'opensurveyindex'); + } } /**