sort addons based on the internal display name instead of the filename
This commit is contained in:
parent
f284558007
commit
5e458491f1
@ -1336,6 +1336,8 @@ class Admin extends \Zotlabs\Web\Controller {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
usort($plugins,'self::plugin_sort');
|
||||||
|
|
||||||
$t = get_markup_template('admin_plugins.tpl');
|
$t = get_markup_template('admin_plugins.tpl');
|
||||||
return replace_macros($t, array(
|
return replace_macros($t, array(
|
||||||
'$title' => t('Administration'),
|
'$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 array $themes
|
||||||
* @param string $th
|
* @param string $th
|
||||||
|
Reference in New Issue
Block a user