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) {