diff options
author | friendica <info@friendica.com> | 2012-10-23 17:14:50 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-10-23 17:14:50 -0700 |
commit | 8e8482355baa55a5c9e3cb3553eecf5a733e2897 (patch) | |
tree | 69aebb07dd105280cb40997f172b90e58c555510 /mod/directory.php | |
parent | 756dcd115e5785dc009bce1e75ebb54c8009dfa7 (diff) | |
download | volse-hubzilla-8e8482355baa55a5c9e3cb3553eecf5a733e2897.tar.gz volse-hubzilla-8e8482355baa55a5c9e3cb3553eecf5a733e2897.tar.bz2 volse-hubzilla-8e8482355baa55a5c9e3cb3553eecf5a733e2897.zip |
more heavy lifting
Diffstat (limited to 'mod/directory.php')
-rw-r--r-- | mod/directory.php | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/mod/directory.php b/mod/directory.php index 6054ad8fd..5744971db 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -9,22 +9,17 @@ function directory_init(&$a) { $a->page['aside'] .= findpeople_widget(); } - else { - unset($_SESSION['theme']); - unset($_SESSION['mobile-theme']); - } - - } +function directory_aside(&$a) { -function directory_post(&$a) { - if(x($_POST,'search')) - $a->data['search'] = $_POST['search']; + if(local_user()) { + require_once('include/contact_widgets.php'); + $a->set_widget('find_people',findpeople_widget()); + } } - function directory_content(&$a) { if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) { @@ -35,8 +30,8 @@ function directory_content(&$a) { $o = ''; nav_set_selected('directory'); - if(x($a->data,'search')) - $search = notags(trim($a->data['search'])); + if(x($_POST,'search')) + $search = notags(trim($_POST['search'])); else $search = ((x($_GET,'search')) ? notags(trim(rawurldecode($_GET['search']))) : ''); |