diff --git a/htdocs/includes/menus/barre_top/auguria_backoffice.php b/htdocs/includes/menus/barre_top/auguria_backoffice.php index 55e357db548c79f576c0cca0717d5834b3c2c3e8..266e3b09eb9625693029851330d58de96eb87a23 100644 --- a/htdocs/includes/menus/barre_top/auguria_backoffice.php +++ b/htdocs/includes/menus/barre_top/auguria_backoffice.php @@ -81,16 +81,16 @@ class MenuTop { if ($tabMenu[$i]['right'] == true) // Is allowed { // Define url - if (eregi("^(http:\/\/|https:\/\/)",$tabMenu[$i]['url'])) + if (preg_match("/^(http:\/\/|https:\/\/)/i",$tabMenu[$i]['url'])) { $url = $tabMenu[$i]['url']; } else { $url=DOL_URL_ROOT.$tabMenu[$i]['url']; - if (! eregi('\?',$url)) $url.='?'; + if (! preg_match('/\?/',$url)) $url.='?'; else $url.='&'; - if (! eregi('mainmenu',$url) || ! eregi('leftmenu',$url)) + if (! preg_match('/mainmenu/i',$url) || ! eregi('leftmenu',$url)) { $url.='mainmenu='.$tabMenu[$i]['mainmenu'].'&leftmenu=&'; }