Browse Source

In the installed page is useless to check for other type of packages when only modifications are listed

Signed-off-by: emanuele <[email protected]>
emanuele 11 years ago
parent
commit
bf0f35d08f
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Sources/Packages.php

+ 3 - 3
Sources/Packages.php

@@ -1364,11 +1364,11 @@ function PackageBrowse()
 
 	$context['page_title'] .= ' - ' . $txt['browse_packages'];
 
-	$context['forum_version'] = $forum_version;
-	$context['modification_types'] = array('modification', 'avatar', 'language', 'unknown');
-
 	$installed = $context['sub_action'] == 'installed' ? true : false;
 
+	$context['forum_version'] = $forum_version;
+	$context['modification_types'] = $installed ? array('modification') : array('modification', 'avatar', 'language', 'unknown');
+
 	require_once($sourcedir . '/Subs-List.php');
 
 	foreach ($context['modification_types'] as $type)