Skip to content

Commit

Permalink
Not required, but for better code consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Dec 16, 2024
1 parent 62c1d50 commit a6da3b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/core/get_menudiv.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,15 +252,15 @@
$menufound = 0;
$dirmenus = array_merge(array("/core/menus/"), (array) $conf->modules_parts['menus']);
foreach ($dirmenus as $dirmenu) {
$menufound = dol_include_once($dirmenu."standard/".$file_menu);
$menufound = dol_include_once($dirmenu."standard/".dol_sanitizeFileName($file_menu));
if ($menufound) {
break;
}
}
if (!$menufound) { // If failed to include, we try with standard
dol_syslog("You define a menu manager '".$file_menu."' that can not be loaded.", LOG_WARNING);
$file_menu = 'eldy_menu.php';
include_once DOL_DOCUMENT_ROOT."/core/menus/standard/".$file_menu;
include_once DOL_DOCUMENT_ROOT."/core/menus/standard/".dol_sanitizeFileName($file_menu);
}
}
$menumanager = new MenuManager($db, empty($user->socid) ? 0 : 1);
Expand Down

0 comments on commit a6da3b1

Please sign in to comment.