From f44bbf0d5f10979516d11242edae156c658c190d 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) git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15765 b9a71923-0436-4b27-9f14-aed3839534dd --- 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'))) {