aboutsummaryrefslogtreecommitdiffstats
path: root/mod/directory.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-07-14 22:53:28 -0700
committerfriendica <info@friendica.com>2013-07-14 22:53:28 -0700
commitd571ac02b2fe6d629a58636795de361843f37b8c (patch)
treef299eed279b1aa3330d06dce0762dbac0fab7fb9 /mod/directory.php
parent4e69119d5816cefa3eee23fae5dfd66cf358c274 (diff)
downloadvolse-hubzilla-d571ac02b2fe6d629a58636795de361843f37b8c.tar.gz
volse-hubzilla-d571ac02b2fe6d629a58636795de361843f37b8c.tar.bz2
volse-hubzilla-d571ac02b2fe6d629a58636795de361843f37b8c.zip
provide a way to search the directory by modification date
Diffstat (limited to 'mod/directory.php')
-rw-r--r--mod/directory.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/directory.php b/mod/directory.php
index 46fc34e16..1e5d64a0f 100644
--- a/mod/directory.php
+++ b/mod/directory.php
@@ -59,6 +59,10 @@ function directory_content(&$a) {
$query .= '&name=' . urlencode($search);
if(strpos($search,'@'))
$query .= '&address=' . urlencode($search);
+
+ $sort_order = ((x($_REQUEST,'order')) ? $_REQUEST['order'] : '');
+ if($sort_order)
+ $query .= '&order=' . urlencode($sort_order);
if($a->pager['page'] != 1)
$query .= '&p=' . $a->pager['page'];