aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/connections.php4
-rw-r--r--mod/directory.php3
-rw-r--r--mod/network.php4
3 files changed, 7 insertions, 4 deletions
diff --git a/mod/connections.php b/mod/connections.php
index b29e4dde8..b3532efbf 100644
--- a/mod/connections.php
+++ b/mod/connections.php
@@ -6,6 +6,7 @@ require_once('include/contact_selectors.php');
require_once('include/group.php');
require_once('include/contact_widgets.php');
require_once('include/zot.php');
+require_once('include/widgets.php');
function connections_init(&$a) {
@@ -32,6 +33,7 @@ function connections_init(&$a) {
function connections_aside(&$a) {
+
if (! local_user())
return;
@@ -44,7 +46,7 @@ function connections_aside(&$a) {
$a->set_widget('collections', group_side('connections','group',false,0,((array_key_exists('abook',$a->data)) ? $a->data['abook']['abook_xchan'] : '')));
- $a->set_widget('suggest',suggest_widget());
+ $a->set_widget('suggest',widget_suggestions(array()));
$a->set_widget('findpeople',findpeople_widget());
}
diff --git a/mod/directory.php b/mod/directory.php
index e6c003099..616035339 100644
--- a/mod/directory.php
+++ b/mod/directory.php
@@ -1,6 +1,7 @@
<?php
require_once('include/dir_fns.php');
+require_once('include/widgets.php');
function directory_init(&$a) {
@@ -213,7 +214,7 @@ function directory_content(&$a) {
if($j['keywords']) {
$a->set_widget('dirtagblock',dir_tagblock(z_root() . '/directory',$j['keywords']));
}
- $a->set_widget('suggest',suggest_widget());
+ $a->set_widget('suggest',widget_suggestions(array()));
// logger('mod_directory: entries: ' . print_r($entries,true), LOGGER_DATA);
diff --git a/mod/network.php b/mod/network.php
index e6cb2b6c6..efb3116ae 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -51,7 +51,7 @@ function network_init(&$a) {
$a->set_widget('collections',widget_collections(array()));
$a->set_widget('archives',posted_date_widget($a->get_baseurl() . '/network',local_user(),false));
- $a->set_widget('suggestions',suggest_widget());
+ $a->set_widget('suggestions',widget_suggestions(array()));
$a->set_widget('savedsearch',saved_searches($search));
$a->set_widget('filer',fileas_widget($a->get_baseurl(true) . '/network',(x($_GET, 'file') ? $_GET['file'] : '')));
@@ -286,7 +286,7 @@ function network_content(&$a, $update = 0, $load = false) {
}
else {
$contact_str = ' 0 ';
- info( t('Group is empty'));
+ info( t('Collection is empty'));
}
$sql_extra = " AND item.parent IN ( SELECT DISTINCT parent FROM item WHERE true $sql_options AND (( author_xchan IN ( $contact_str ) OR owner_xchan in ( $contact_str )) or allow_gid like '" . protect_sprintf('%<' . dbesc($group_hash) . '>%') . "' ) and id = parent and item_restrict = 0 ) ";