aboutsummaryrefslogtreecommitdiffstats
path: root/mod/directory.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2010-12-12 18:43:32 -0800
committerFriendika <info@friendika.com>2010-12-12 18:43:32 -0800
commit57eb0576b018902d020bbf17e5b38a4ed7c440fd (patch)
tree4dc09767b42aebde2c8b465a2815184ddfdd23d5 /mod/directory.php
parent1cffecd1bed6856dd40eddd8b0e6cd870d287762 (diff)
downloadvolse-hubzilla-57eb0576b018902d020bbf17e5b38a4ed7c440fd.tar.gz
volse-hubzilla-57eb0576b018902d020bbf17e5b38a4ed7c440fd.tar.bz2
volse-hubzilla-57eb0576b018902d020bbf17e5b38a4ed7c440fd.zip
make both content and people search POSTable
Diffstat (limited to 'mod/directory.php')
-rw-r--r--mod/directory.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/mod/directory.php b/mod/directory.php
index 703c08ce1..e9bbf47ab 100644
--- a/mod/directory.php
+++ b/mod/directory.php
@@ -3,11 +3,22 @@ function directory_init(&$a) {
$a->set_pager_itemspage(60);
}
+
+function directory_post(&$a) {
+ if(x($_POST,'search'))
+ $a->data['search'] = $_POST['search'];
+}
+
+
+
function directory_content(&$a) {
$o = '';
$o .= '<script> $(document).ready(function() { $(\'#nav-directory-link\').addClass(\'nav-selected\'); });</script>';
- $search = ((x($_GET,'search')) ? notags(trim($_GET['search'])) : '');
+ if(x($a->data,'search'))
+ $search = notags(trim($a->data['search']));
+ else
+ $search = ((x($_GET,'search')) ? notags(trim($_GET['search'])) : '');
$tpl = load_view_file('view/directory_header.tpl');