mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-26 05:32:59 +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
|
- Fixed a bug in the search query performance metrics
|
||||||
- Fill out the statistics help text
|
- Fill out the statistics help text
|
||||||
- Added table of contents to help page
|
- 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))
|
- 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
|
- Marked the user avatar on the top navigation bar as hidden for screen readers
|
||||||
- Added aria label to user preferences button
|
- Added aria label to user preferences button
|
||||||
- Hide site logo from screen readers
|
- 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
|
### Changed
|
||||||
- Made `build.sh` build script more robust, especially when generating the documentation.
|
- Made `build.sh` build script more robust, especially when generating the documentation.
|
||||||
|
|
|
@ -155,7 +155,7 @@
|
||||||
"version": "0.1",
|
"version": "0.1",
|
||||||
"author": "Starbeamrainbowlabs",
|
"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.",
|
"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,
|
"optional": false,
|
||||||
"extra_data": []
|
"extra_data": []
|
||||||
},
|
},
|
||||||
|
@ -257,7 +257,7 @@
|
||||||
"version": "0.11.1",
|
"version": "0.11.1",
|
||||||
"author": "Starbeamrainbowlabs",
|
"author": "Starbeamrainbowlabs",
|
||||||
"description": "Adds a page that lists all the pages in the index along with their metadata.",
|
"description": "Adds a page that lists all the pages in the index along with their metadata.",
|
||||||
"lastupdate": 1567107944,
|
"lastupdate": 1567512802,
|
||||||
"optional": false,
|
"optional": false,
|
||||||
"extra_data": []
|
"extra_data": []
|
||||||
},
|
},
|
||||||
|
|
|
@ -118,10 +118,6 @@ register_module([
|
||||||
}
|
}
|
||||||
$tag = $_GET["tag"];
|
$tag = $_GET["tag"];
|
||||||
|
|
||||||
|
|
||||||
$sorted_pageindex = get_object_vars($pageindex);
|
|
||||||
ksort($sorted_pageindex, SORT_NATURAL);
|
|
||||||
|
|
||||||
$pagelist = [];
|
$pagelist = [];
|
||||||
foreach($pageindex as $pagename => $pagedetails)
|
foreach($pageindex as $pagename => $pagedetails)
|
||||||
{
|
{
|
||||||
|
@ -130,6 +126,9 @@ register_module([
|
||||||
$pagelist[] = $pagename;
|
$pagelist[] = $pagename;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$sorter = new Collator("");
|
||||||
|
$sorter->sort($pagelist, Collator::SORT_STRING);
|
||||||
|
|
||||||
switch($format)
|
switch($format)
|
||||||
{
|
{
|
||||||
case "html":
|
case "html":
|
||||||
|
|
Loading…
Reference in a new issue