Prepend sticky pages to getList
As there is no way to comfortably sort pages by sticky first, we can, as an interim solution unshift sticky pages instead of pushing them.
This commit is contained in:
parent
442a8ca1db
commit
74e83a60a9
|
@ -541,7 +541,7 @@ class Pages extends dbJSON {
|
||||||
} elseif ($static && $fields['type']=='static') {
|
} elseif ($static && $fields['type']=='static') {
|
||||||
array_push($list, $key);
|
array_push($list, $key);
|
||||||
} elseif ($sticky && $fields['type']=='sticky') {
|
} elseif ($sticky && $fields['type']=='sticky') {
|
||||||
array_push($list, $key);
|
array_unshift($list, $key);
|
||||||
} elseif ($draft && $fields['type']=='draft') {
|
} elseif ($draft && $fields['type']=='draft') {
|
||||||
array_push($list, $key);
|
array_push($list, $key);
|
||||||
} elseif ($scheduled && $fields['type']=='scheduled') {
|
} elseif ($scheduled && $fields['type']=='scheduled') {
|
||||||
|
|
Loading…
Reference in New Issue