Fix phpcs
This commit is contained in:
parent
29a2601b9d
commit
1ff8b879a8
@ -37,38 +37,43 @@ class InfoBox
|
|||||||
{
|
{
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
if($conf->global->MAIN_FEATURES_LEVEL < 2)
|
if (empty($conf->global->MAIN_FEATURES_LEVEL) || $conf->global->MAIN_FEATURES_LEVEL < 2)
|
||||||
|
{
|
||||||
return array(0 => 'Home');
|
return array(0 => 'Home');
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return array(0 => 'Home',
|
return array(
|
||||||
1 => 'userhome',
|
0 => 'Home',
|
||||||
2 => 'membersindex',
|
1 => 'userhome',
|
||||||
3 => 'thirdpartiesindex',
|
2 => 'membersindex',
|
||||||
4 => 'productindex',
|
3 => 'thirdpartiesindex',
|
||||||
5 => 'productindex',
|
4 => 'productindex',
|
||||||
6 => 'mrpindex',
|
5 => 'productindex',
|
||||||
7 => 'commercialindex',
|
6 => 'mrpindex',
|
||||||
8 => 'projectsindex',
|
7 => 'commercialindex',
|
||||||
9 => 'invoiceindex',
|
8 => 'projectsindex',
|
||||||
10 => 'hrmindex',
|
9 => 'invoiceindex',
|
||||||
11 => 'ticketsindex',
|
10 => 'hrmindex',
|
||||||
12 => 'stockindex',
|
11 => 'ticketsindex',
|
||||||
13 => 'sendingindex',
|
12 => 'stockindex',
|
||||||
14 => 'receptionindex',
|
13 => 'sendingindex',
|
||||||
15 => 'activityindex',
|
14 => 'receptionindex',
|
||||||
16 => 'proposalindex',
|
15 => 'activityindex',
|
||||||
17 => 'ordersindex',
|
16 => 'proposalindex',
|
||||||
18 => 'orderssuppliersindex',
|
17 => 'ordersindex',
|
||||||
19 => 'contractindex',
|
18 => 'orderssuppliersindex',
|
||||||
20 => 'interventionindex',
|
19 => 'contractindex',
|
||||||
21 => 'suppliersproposalsindex',
|
20 => 'interventionindex',
|
||||||
22 => 'donationindex',
|
21 => 'suppliersproposalsindex',
|
||||||
23 => 'specialexpensesindex',
|
22 => 'donationindex',
|
||||||
24 => 'expensereportindex',
|
23 => 'specialexpensesindex',
|
||||||
25 => 'mailingindex',
|
24 => 'expensereportindex',
|
||||||
26 => 'opensurveyindex');
|
25 => 'mailingindex',
|
||||||
}
|
26 => 'opensurveyindex',
|
||||||
|
27 => 'accountancyindex'
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user