Skip to content

Commit

Permalink
// remove themeinstallator from install modules list, now install fro…
Browse files Browse the repository at this point in the history
…m addons
  • Loading branch information
vAugagneur committed Mar 20, 2013
1 parent 2fb9b14 commit 04c3b54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions classes/Tools.php
Expand Up @@ -2388,11 +2388,11 @@ public static function addonsRequest($request, $params = array())
}
}

if ($request == 'install_modules')
if ($request == 'install-modules')
{
// Define protocol accepted and post data values for this request
$protocolsList = array('https://' => 443, 'http://' => 80);
$postData .= '&method=listing&action=install_modules';
$postData .= '&method=listing&action=install-modules';

}

Expand Down
3 changes: 1 addition & 2 deletions install-dev/models/install.php
Expand Up @@ -582,7 +582,6 @@ public function getModulesList()
'statssearch',
'statsstock',
'statsvisits',
'themeinstallator',
);
}

Expand All @@ -592,7 +591,7 @@ public function getModulesList()
public function getAddonsModulesList()
{
$addons_modules = array();
$content = Tools::addonsRequest('install_modules');
$content = Tools::addonsRequest('install-modules');
$xml = @simplexml_load_string($content, null, LIBXML_NOCDATA);
foreach ($xml->module as $modaddons)
$addons_modules[] = array('id_module' => $modaddons->id, 'name' => $modaddons->name);
Expand Down

0 comments on commit 04c3b54

Please sign in to comment.