summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/lib/pkgfuncs.inc.php4
-rw-r--r--web/template/pkg_search_form.php2
2 files changed, 5 insertions, 1 deletions
diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php
index 62bea652..600e5905 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:
diff --git a/web/template/pkg_search_form.php b/web/template/pkg_search_form.php
index 404d16ec..1cc5fb26 100644
--- a/web/template/pkg_search_form.php
+++ b/web/template/pkg_search_form.php
@@ -24,7 +24,7 @@ $sortby = array(
'w' => __('Voted'),
'o' => __('Notify'),
'm' => __('Maintainer'),
- 'a' => __('Age')
+ 'l' => __('Last modified')
);
$orderby = array(