1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-22 04:23:01 +00:00

Sort themes before display

This commit is contained in:
Starbeamrainbowlabs 2019-08-26 15:48:37 +01:00
parent c96e3108aa
commit e85f480e63
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
2 changed files with 5 additions and 1 deletions

View file

@ -155,7 +155,7 @@
"version": "0.1",
"author": "Starbeamrainbowlabs",
"description": "Adds a theme gallery page and optional automatic theme updates. Contacts a remote server, where IP addresses are stored in automatic server logs for security and attack mitigation purposes.",
"lastupdate": 1566828460,
"lastupdate": 1566830789,
"optional": false,
"extra_data": []
},

View file

@ -37,6 +37,10 @@ register_module([
}
}
usort($themes_available, function($a, $b) {
return strcmp($a->name, $b->name);
});
$content = "<h1>Theme Gallery</h1>
<div class='grid theme-list'>\n";
foreach($themes_available as $theme) {