diff options
author | Lukas Fleischer <lfleischer@archlinux.org> | 2015-09-20 11:03:15 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2015-09-20 11:09:47 +0200 |
commit | f3ec4d1ef553259b0a617b9d11da4ece2ecc9dfd (patch) | |
tree | 87892c9ebafcfc41b12539f6e603e21b25ead600 /web/lib/pkgfuncs.inc.php | |
parent | 0478a0a2dade87e9bce71e9839b791c67fddfdc8 (diff) | |
download | aurweb-f3ec4d1ef553259b0a617b9d11da4ece2ecc9dfd.tar.xz |
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>
Diffstat (limited to 'web/lib/pkgfuncs.inc.php')
-rw-r--r-- | web/lib/pkgfuncs.inc.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php index 62bea65..600e590 100644 --- a/web/lib/pkgfuncs.inc.php +++ b/web/lib/pkgfuncs.inc.php @@ -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: |