Es wäre sehr angenehm, die Liste der Plugins in hi_updatecheck alphabetisch sortiert zu haben. Was/wo zugegeben sein sollte?
Das gleiche wäre super auch bei hi_admin und bei ähnlichen Plugins/Addons, die eine Pluginsliste zeigen.
Sort Plugins in hi_updatecheck
Moderator: Tata
Sort Plugins in hi_updatecheck
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
Re: Sort Plugins in hi_updatecheck
Ungetested: füge mal nach dieser Zeile das folgende ein:
Code: Select all
natcasesort($upd_plugins);
$upd_plugins = array_values($upd_plugins);
PS: ah, man müsste noch $plugin_cf['hi_updatecheck']['ignore'] berücksichtigen.
Last edited by cmb on Thu May 28, 2020 10:29 pm, edited 1 time in total.
Reason: added PS
Reason: added PS
Christoph M. Becker – Plugins for CMSimple_XH
Re: Sort Plugins in hi_updatecheck
SUPER!!!
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
Re: Sort Plugins in hi_updatecheck
EVEN MORE SUPER!!!
It works also in hi_admin plugin. With the only one inserted line in pluginmanager.inc.php.
It works also in hi_admin plugin. With the only one inserted line in pluginmanager.inc.php.
Code: Select all
$plugins = hi_adm_InstalledPlugins();
/*** *** ***/
natcasesort($plugins);
/*** *** ***/
$plugins = array_map('strtolower', $plugins);
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.