1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-12-22 13:45:02 +00:00

Sort datalist by page name.

This commit is contained in:
Starbeamrainbowlabs 2016-04-08 07:27:07 +01:00
parent 51fbfe0e4d
commit 7b638725ff
4 changed files with 7 additions and 7 deletions

View file

@ -1207,9 +1207,10 @@ class page_renderer
public static function generate_all_pages_datalist()
{
global $pageindex;
$arrayPageIndex = get_object_vars($pageindex);
ksort($arrayPageIndex);
$result = "<datalist id='allpages'>\n";
foreach($pageindex as $pagename => $pagedetails)
foreach($arrayPageIndex as $pagename => $pagedetails)
{
$result .= "\t\t\t<option value='$pagename' />\n";
}
@ -2640,7 +2641,6 @@ register_module([
$preview_etag = sha1("$output_mime|$target_size|$filepath|$mime_type");
$allheaders = getallheaders();
$allheaders = array_change_key_case($allheaders, CASE_LOWER);
error_log(var_export($allheaders, true));
if(!isset($allheaders["if-none-match"]))
{
header("etag: $preview_etag");

View file

@ -806,9 +806,10 @@ class page_renderer
public static function generate_all_pages_datalist()
{
global $pageindex;
$arrayPageIndex = get_object_vars($pageindex);
ksort($arrayPageIndex);
$result = "<datalist id='allpages'>\n";
foreach($pageindex as $pagename => $pagedetails)
foreach($arrayPageIndex as $pagename => $pagedetails)
{
$result .= "\t\t\t<option value='$pagename' />\n";
}

View file

@ -68,7 +68,7 @@
"author": "Starbeamrainbowlabs",
"description": "Adds the ability to upload files to Pepperminty Wiki. Uploaded files act as pages and have the special 'File:' prefix.",
"id": "feature-upload",
"lastupdate": 1460050114,
"lastupdate": 1460096484,
"optional": false
},
{

View file

@ -220,7 +220,6 @@ register_module([
$preview_etag = sha1("$output_mime|$target_size|$filepath|$mime_type");
$allheaders = getallheaders();
$allheaders = array_change_key_case($allheaders, CASE_LOWER);
error_log(var_export($allheaders, true));
if(!isset($allheaders["if-none-match"]))
{
header("etag: $preview_etag");