aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/directory.php10
-rw-r--r--mod/home.php8
2 files changed, 8 insertions, 10 deletions
diff --git a/mod/directory.php b/mod/directory.php
index 616035339..92fb36ea7 100644
--- a/mod/directory.php
+++ b/mod/directory.php
@@ -11,15 +11,13 @@ function directory_init(&$a) {
function directory_aside(&$a) {
- if(local_user()) {
- require_once('include/contact_widgets.php');
- $a->set_widget('find_people',findpeople_widget());
- }
-
if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) {
return;
}
-
+
+ require_once('include/contact_widgets.php');
+ $a->set_widget('find_people',findpeople_widget());
+
$a->set_widget('safe_search',dir_safe_mode());
$a->set_widget('dir_sort_order',dir_sort_links());
diff --git a/mod/home.php b/mod/home.php
index edcaa938d..3f862b596 100644
--- a/mod/home.php
+++ b/mod/home.php
@@ -1,6 +1,6 @@
<?php
-if(! function_exists('home_init')) {
+
function home_init(&$a) {
$ret = array();
@@ -20,10 +20,10 @@ function home_init(&$a) {
goaway(z_root() . '/new_channel');
}
-}}
+}
+
-if(! function_exists('home_content')) {
function home_content(&$a) {
$o = '';
@@ -85,4 +85,4 @@ require_once('include/conversation.php');
return $o;
}
-}
+