X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=mod%2Fdirectory.php;h=5f00b4f5a4a9ced5703cf8f26cd22cdb9f82390d;hb=a9ec56ace1756726517650d96192df5320f445fe;hp=93abcd5de845dd661fd9afef49649c438ed44644;hpb=07b6c868b3a66efc2737dfc6459b4114fea59ba0;p=friendica.git diff --git a/mod/directory.php b/mod/directory.php index 93abcd5de8..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']); + + } @@ -23,8 +34,6 @@ function directory_content(&$a) { $o = ''; nav_set_selected('directory'); - if(x($_SESSION,'theme')) - unset($_SESSION['theme']); if(x($a->data,'search')) $search = notags(trim($a->data['search'])); @@ -45,12 +54,13 @@ function directory_content(&$a) { if($everything) $admin = '