aboutsummaryrefslogtreecommitdiff
path: root/views/default/admin/plugins.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/admin/plugins.php')
-rw-r--r--views/default/admin/plugins.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/views/default/admin/plugins.php b/views/default/admin/plugins.php
index 449c86d11..cc96b40f8 100644
--- a/views/default/admin/plugins.php
+++ b/views/default/admin/plugins.php
@@ -21,13 +21,18 @@
// Get the installed plugins
$installed_plugins = $vars['installed_plugins'];
$count = count($installed_plugins);
+
+ $plugin_list = get_plugin_list();
+ $max = 0;
+ foreach($plugin_list as $key => $foo)
+ if ($key > $max) $max = $key;
// Display list of plugins
$n = 0;
foreach ($installed_plugins as $plugin => $data)
{
//if (($n>=$offset) && ($n < $offset+$limit))
- echo elgg_view("admin/plugins_opt/plugin", array('plugin' => $plugin, 'details' => $data));
+ echo elgg_view("admin/plugins_opt/plugin", array('plugin' => $plugin, 'details' => $data, 'maxorder' => $max, 'order' => array_search($plugin, $plugin_list)));
$n++;
}