mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Rename "Age" search order to "Last modified"
Use a better description for sorting by modification time, as it is not clear whether "Age" refers to the package creation date or to the modification date. The possibility to sort by "Age" is kept internally (but hidden from the user interface) such that old links to search results still work. Fixes FS#46319. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
0478a0a2da
commit
f3ec4d1ef5
2 changed files with 5 additions and 1 deletions
|
@ -755,7 +755,11 @@ function pkg_search_page($SID="") {
|
|||
case 'm':
|
||||
$q_sort .= "Maintainer " . $order . ", ";
|
||||
break;
|
||||
case 'l':
|
||||
$q_sort .= "ModifiedTS " . $order . ", ";
|
||||
break;
|
||||
case 'a':
|
||||
/* For compatibility with old search links. */
|
||||
$q_sort .= "-ModifiedTS " . $order . ", ";
|
||||
break;
|
||||
default:
|
||||
|
|
|
@ -24,7 +24,7 @@ $sortby = array(
|
|||
'w' => __('Voted'),
|
||||
'o' => __('Notify'),
|
||||
'm' => __('Maintainer'),
|
||||
'a' => __('Age')
|
||||
'l' => __('Last modified')
|
||||
);
|
||||
|
||||
$orderby = array(
|
||||
|
|
Loading…
Add table
Reference in a new issue