aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Admin.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-05-01 20:43:57 -0700
committerredmatrix <git@macgirvin.com>2016-05-01 20:43:57 -0700
commit5e458491f1e0fce5ec9e4855dac13340af627ded (patch)
tree65477691b4ef9c3f126fc84fa986a66c11ae2cd4 /Zotlabs/Module/Admin.php
parentf284558007583c7b882071fa995f994661bb97cc (diff)
downloadvolse-hubzilla-5e458491f1e0fce5ec9e4855dac13340af627ded.tar.gz
volse-hubzilla-5e458491f1e0fce5ec9e4855dac13340af627ded.tar.bz2
volse-hubzilla-5e458491f1e0fce5ec9e4855dac13340af627ded.zip
sort addons based on the internal display name instead of the filename
Diffstat (limited to 'Zotlabs/Module/Admin.php')
-rw-r--r--Zotlabs/Module/Admin.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/Zotlabs/Module/Admin.php b/Zotlabs/Module/Admin.php
index 5eaede6a6..6dad11ab8 100644
--- a/Zotlabs/Module/Admin.php
+++ b/Zotlabs/Module/Admin.php
@@ -1336,6 +1336,8 @@ class Admin extends \Zotlabs\Web\Controller {
}
}
+ usort($plugins,'self::plugin_sort');
+
$t = get_markup_template('admin_plugins.tpl');
return replace_macros($t, array(
'$title' => t('Administration'),
@@ -1349,6 +1351,11 @@ class Admin extends \Zotlabs\Web\Controller {
));
}
+ static public function plugin_sort($a,$b) {
+ return(strcmp(strtolower($a[2]['name']),strtolower($b[2]['name'])));
+ }
+
+
/**
* @param array $themes
* @param string $th