// remove themeinstallator from install modules list, now install from addons

This commit is contained in:
vAugagneur
2013-03-20 11:25:45 +01:00
parent 2fb9b140f0
commit 04c3b54c38
2 changed files with 3 additions and 4 deletions
+2 -2
View File
@@ -2388,11 +2388,11 @@ exit;
} }
} }
if ($request == 'install_modules') if ($request == 'install-modules')
{ {
// Define protocol accepted and post data values for this request // Define protocol accepted and post data values for this request
$protocolsList = array('https://' => 443, 'http://' => 80); $protocolsList = array('https://' => 443, 'http://' => 80);
$postData .= '&method=listing&action=install_modules'; $postData .= '&method=listing&action=install-modules';
} }
+1 -2
View File
@@ -582,7 +582,6 @@ class InstallModelInstall extends InstallAbstractModel
'statssearch', 'statssearch',
'statsstock', 'statsstock',
'statsvisits', 'statsvisits',
'themeinstallator',
); );
} }
@@ -592,7 +591,7 @@ class InstallModelInstall extends InstallAbstractModel
public function getAddonsModulesList() public function getAddonsModulesList()
{ {
$addons_modules = array(); $addons_modules = array();
$content = Tools::addonsRequest('install_modules'); $content = Tools::addonsRequest('install-modules');
$xml = @simplexml_load_string($content, null, LIBXML_NOCDATA); $xml = @simplexml_load_string($content, null, LIBXML_NOCDATA);
foreach ($xml->module as $modaddons) foreach ($xml->module as $modaddons)
$addons_modules[] = array('id_module' => $modaddons->id, 'name' => $modaddons->name); $addons_modules[] = array('id_module' => $modaddons->id, 'name' => $modaddons->name);