diff --git a/htdocs/install/upgrade2.php b/htdocs/install/upgrade2.php index a92e6c424a6..6d8ac6e1be4 100644 --- a/htdocs/install/upgrade2.php +++ b/htdocs/install/upgrade2.php @@ -21,7 +21,7 @@ /** * \file htdocs/install/upgrade2.php * \brief Upgrade some data - * \version $Id: upgrade2.php,v 1.189 2011/08/11 21:03:42 eldy Exp $ + * \version $Id: upgrade2.php,v 1.190 2011/08/21 13:28:05 eldy Exp $ */ include_once('./inc.php'); @@ -3404,6 +3404,7 @@ function migrate_reload_modules($db,$langs,$conf) /** * Reload menu if dynamic menus, if modified by version + * * @param $db * @param $langs * @param $conf @@ -3424,10 +3425,18 @@ function migrate_reload_menu($db,$langs,$conf,$versionto) $beforeversionarray=explode('.','2.9.9'); if (versioncompare($versiontoarray,$afterversionarray) >= 0 && versioncompare($versiontoarray,$beforeversionarray) <= 0) { - $listofmenuhandler[]='auguria'; // We set here only dinamic menu handlers + $listofmenuhandler['auguria']=1; // We set here only dynamic menu handlers } - foreach ($listofmenuhandler as $key) + // Script for VX (X<3.2) -> V3.2 + $afterversionarray=explode('.','3.1.9'); + $beforeversionarray=explode('.','3.2.9'); + if (versioncompare($versiontoarray,$afterversionarray) >= 0 && versioncompare($versiontoarray,$beforeversionarray) <= 0) + { + $listofmenuhandler['auguria']=1; // We set here only dynamic menu handlers + } + + foreach ($listofmenuhandler as $key => $val) { print '';