Skip to content
Snippets Groups Projects
Commit f6ede6c3 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Disable experimental menus

parent 04f2931c
No related branches found
No related tags found
No related merge requests found
......@@ -184,15 +184,17 @@ class FormAdmin
}
/**
* Retourne la liste deroulante des menus disponibles
* @param selected Menu pre-selectionnee
* @param htmlname Nom de la zone select
* @param dirmenuarray Repertoires a scanner
* Return combo list of available menu families
* @param selected Menu pre-selected
* @param htmlname Name of html select
* @param dirmenuarray Directories to scan
*/
function select_menu_families($selected='',$htmlname,$dirmenuarray)
{
global $langs,$conf;
$expdevmenu=array('iphone_backoffice.php','iphone_frontoffice.php'); // Menu to disable if $conf->global->MAIN_FEATURES_LEVEL is not set
$menuarray=array();
foreach($dirmenuarray as $dirmenu)
......@@ -208,6 +210,7 @@ class FormAdmin
if (preg_match('/^default/i',$filelib)) continue;
if (preg_match('/^empty/i',$filelib)) continue;
if (preg_match('/\.lib/i',$filelib)) continue;
if (empty($conf->global->MAIN_FEATURES_LEVEL) && in_array($file,$expdevmenu)) continue;
$menuarray[$filelib]=1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment