Skip to content

Commit

Permalink
Fix sorting of modules
Browse files Browse the repository at this point in the history
  • Loading branch information
haraldpdl committed Sep 14, 2010
1 parent 18b2dbf commit 8998ecc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions catalog/admin/modules.php
Expand Up @@ -191,7 +191,7 @@
if (tep_class_exists($class)) {
$module = new $class;
if ($module->check() > 0) {
if ($module->sort_order > 0) {
if (($module->sort_order > 0) && !isset($installed_modules[$module->sort_order])) {
$installed_modules[$module->sort_order] = $file;
} else {
$installed_modules[] = $file;
Expand Down Expand Up @@ -325,7 +325,7 @@

$contents[] = array('text' => '<br>' . $mInfo->description);
$contents[] = array('text' => '<br>' . $keys);
} else {
} elseif (isset($HTTP_GET_VARS['list']) && ($HTTP_GET_VARS['list'] == 'new')) {
$contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $mInfo->code . '&action=install') . '">' . tep_image_button('button_module_install.gif', IMAGE_MODULE_INSTALL) . '</a>');

if (isset($mInfo->signature) && (list($scode, $smodule, $sversion, $soscversion) = explode('|', $mInfo->signature))) {
Expand Down

0 comments on commit 8998ecc

Please sign in to comment.