// deactivate_custom_modules will return false if file modules_list.xml does not exists
This commit is contained in:
@@ -41,6 +41,10 @@ function deactivate_custom_modules()
|
||||
}
|
||||
|
||||
$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;
|
||||
foreach ($nativeModules as $nativeModulesType)
|
||||
|
||||
Reference in New Issue
Block a user