From 4e195970e7bed4f78f7d2cb892d85dd7f09098ef Mon Sep 17 00:00:00 2001 From: mMarinetti Date: Wed, 30 May 2012 13:09:48 +0000 Subject: [PATCH] // added compatibility (upgrade from version <1.5 and >1.5 works properly) --- install-dev/upgrade/php/deactivate_custom_modules.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install-dev/upgrade/php/deactivate_custom_modules.php b/install-dev/upgrade/php/deactivate_custom_modules.php index 72586e498..4054d2deb 100644 --- a/install-dev/upgrade/php/deactivate_custom_modules.php +++ b/install-dev/upgrade/php/deactivate_custom_modules.php @@ -43,10 +43,15 @@ function deactivate_custom_modules() $module_list_xml = _PS_ROOT_DIR_.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'xml'.DIRECTORY_SEPARATOR.'modules_list.xml'; if (!file_exists($module_list_xml)) + { + $module_list_xml = _PS_ROOT_DIR_.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'modules_list.xml'; + if (!file_exists($module_list_xml)) return false; + } $nativeModules = simplexml_load_file($module_list_xml); $nativeModules = $nativeModules->modules; + $arrNativeModules = array(); foreach ($nativeModules as $nativeModulesType) if (in_array($nativeModulesType['type'],array('native','partner'))) {