mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-12-22 13:45:02 +00:00
Sort page lists in list-tags action
This commit is contained in:
parent
e570427469
commit
80cdb40fb2
3 changed files with 7 additions and 7 deletions
|
@ -13,11 +13,12 @@ This file holds the changelog for Pepperminty Wiki. This is the master list of t
|
|||
- Fixed a bug in the search query performance metrics
|
||||
- Fill out the statistics help text
|
||||
- Added table of contents to help page
|
||||
- Squashed the large blank space that sometimes appears at the bottom of the page editor page
|
||||
- Squashed the large blank space that appears at the bottom of the page editor page when editing long pages
|
||||
- Accessibility improvements - thanks, Firefox developer tools :D (if you're a screen reader / accessibility tool user and have feedback or any better ideas, please [get in touch](https://github.com/sbrl/Pepperminty-Wiki/issues/new))
|
||||
- Marked the user avatar on the top navigation bar as hidden for screen readers
|
||||
- Added aria label to user preferences button
|
||||
- Hide site logo from screen readers
|
||||
- Lists of pages that have a specific tag will now be sorted alphabetically (unicode characters should be handled correctly too)
|
||||
|
||||
### Changed
|
||||
- Made `build.sh` build script more robust, especially when generating the documentation.
|
||||
|
|
|
@ -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": 1567366716,
|
||||
"lastupdate": 1567369192,
|
||||
"optional": false,
|
||||
"extra_data": []
|
||||
},
|
||||
|
@ -257,7 +257,7 @@
|
|||
"version": "0.11.1",
|
||||
"author": "Starbeamrainbowlabs",
|
||||
"description": "Adds a page that lists all the pages in the index along with their metadata.",
|
||||
"lastupdate": 1567107944,
|
||||
"lastupdate": 1567512802,
|
||||
"optional": false,
|
||||
"extra_data": []
|
||||
},
|
||||
|
|
|
@ -118,10 +118,6 @@ register_module([
|
|||
}
|
||||
$tag = $_GET["tag"];
|
||||
|
||||
|
||||
$sorted_pageindex = get_object_vars($pageindex);
|
||||
ksort($sorted_pageindex, SORT_NATURAL);
|
||||
|
||||
$pagelist = [];
|
||||
foreach($pageindex as $pagename => $pagedetails)
|
||||
{
|
||||
|
@ -130,6 +126,9 @@ register_module([
|
|||
$pagelist[] = $pagename;
|
||||
}
|
||||
|
||||
$sorter = new Collator("");
|
||||
$sorter->sort($pagelist, Collator::SORT_STRING);
|
||||
|
||||
switch($format)
|
||||
{
|
||||
case "html":
|
||||
|
|
Loading…
Reference in a new issue