X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fdirectory.php;h=5f00b4f5a4a9ced5703cf8f26cd22cdb9f82390d;hb=7f2070ca91aca9e92f3ac4c5b714742c6f9ecc3b;hp=dfe8ec0d95f50e8a70ceaf5f6a3af53f68531cf6;hpb=4cff911939b263993eb41682ca558c975e2db01f;p=friendica.git diff --git a/mod/directory.php b/mod/directory.php index dfe8ec0d95..5f00b4f5a4 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -2,6 +2,17 @@ function directory_init(&$a) { $a->set_pager_itemspage(60); + + if(local_user()) { + require_once('include/contact_widgets.php'); + + $a->page['aside'] .= findpeople_widget(); + + } + else + unset($_SESSION['theme']); + + } @@ -22,9 +33,7 @@ function directory_content(&$a) { } $o = ''; - $o .= ''; - if(x($_SESSION,'theme')) - unset($_SESSION['theme']); + nav_set_selected('directory'); if(x($a->data,'search')) $search = notags(trim($a->data['search'])); @@ -45,12 +54,13 @@ function directory_content(&$a) { if($everything) $admin = '