mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
More 1.x -> 2.0 upgrade fixes.
This commit is contained in:
@@ -518,7 +518,7 @@ function update_706_to_800($type='')
|
||||
//delete record for online_extended_menu (now only using one online menu)
|
||||
if($sql->db_Select('menus', '*', "menu_path='online_extended_menu' || menu_path='online_extended_menu/'"))
|
||||
{
|
||||
if ($just_check) return update_needed();
|
||||
if ($just_check) return update_needed("The Menu table needs to have some paths corrected in its data.");
|
||||
|
||||
$row=$sql->db_Fetch();
|
||||
|
||||
@@ -547,6 +547,33 @@ function update_706_to_800($type='')
|
||||
catch_error($sql);
|
||||
}
|
||||
|
||||
if (!$just_check)
|
||||
{
|
||||
// Alert Admin to delete deprecated menu folders.
|
||||
$chgPath = array();
|
||||
foreach($changeMenuPaths as $cgpArray)
|
||||
{
|
||||
if(is_dir(e_PLUGIN.$cgpArray['oldpath']))
|
||||
{
|
||||
$chgPath[] = $cgpArray['oldpath'];
|
||||
}
|
||||
}
|
||||
//TODO LAN
|
||||
|
||||
if(count($chgPath))
|
||||
{
|
||||
e107::getMessage()->addWarning('Before continuing, please manually delete the following outdated folders from your system: ');
|
||||
array_unique($chgPath);
|
||||
asort($chgPath);
|
||||
foreach($chgPath as $cgp)
|
||||
{
|
||||
e107::getMessage()->addWarning(e_PLUGIN_ABS."<b>".$cgp."</b>");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
//---------------------------------------------------------
|
||||
// Comments - split user field
|
||||
|
Reference in New Issue
Block a user