aboutsummaryrefslogtreecommitdiffstats
path: root/mod/directory.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/directory.php')
-rw-r--r--mod/directory.php19
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']))) : '');