Add main feature level
This commit is contained in:
parent
3bdbbc7147
commit
ac7bcbd1b2
@ -34,6 +34,12 @@ class InfoBox
|
|||||||
* @return string[] Array with list of zones
|
* @return string[] Array with list of zones
|
||||||
*/
|
*/
|
||||||
public static function getListOfPagesForBoxes()
|
public static function getListOfPagesForBoxes()
|
||||||
|
{
|
||||||
|
global $conf;
|
||||||
|
|
||||||
|
if($conf->global->MAIN_FEATURES_LEVEL < 2)
|
||||||
|
return array(0 => 'Home');
|
||||||
|
else
|
||||||
{
|
{
|
||||||
return array(0 => 'Home',
|
return array(0 => 'Home',
|
||||||
1 => 'userhome',
|
1 => 'userhome',
|
||||||
@ -63,6 +69,7 @@ class InfoBox
|
|||||||
25 => 'mailingindex',
|
25 => 'mailingindex',
|
||||||
26 => 'opensurveyindex');
|
26 => 'opensurveyindex');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return array of boxes qualified for area and user
|
* Return array of boxes qualified for area and user
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user