diff options
author | Andrew Manning <tamanning@zoho.com> | 2018-03-05 20:06:47 -0500 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2018-03-05 20:06:47 -0500 |
commit | 9b13db1c4896e6a8b0a55195530f5449999e811d (patch) | |
tree | 0588de154eec12481cd56e448a0a682bb94341aa /include/socgraph.php | |
parent | 058f7277b52bdcdb80dc3e28bf0ec93a573195a7 (diff) | |
parent | c462d2f15eb2d463706403676b00bbd7bd111443 (diff) | |
download | volse-hubzilla-9b13db1c4896e6a8b0a55195530f5449999e811d.tar.gz volse-hubzilla-9b13db1c4896e6a8b0a55195530f5449999e811d.tar.bz2 volse-hubzilla-9b13db1c4896e6a8b0a55195530f5449999e811d.zip |
Merge branch 'dev' into oauth2
Diffstat (limited to 'include/socgraph.php')
-rw-r--r-- | include/socgraph.php | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/include/socgraph.php b/include/socgraph.php index 87a880202..6cddbbaac 100644 --- a/include/socgraph.php +++ b/include/socgraph.php @@ -52,7 +52,7 @@ function poco_load($xchan = '', $url = null) { elseif($s['return_code'] == 404) logger('poco_load: nothing found'); else - logger('poco_load: returns ' . print_r($s,true)); + logger('poco_load: returns ' . print_r($s,true), LOGGER_DATA); return; } @@ -288,11 +288,14 @@ function suggestion_query($uid, $myxchan, $start = 0, $limit = 80) { function update_suggestions() { - $dirmode = get_config('system', 'directory_mode'); - if($dirmode === false) - $dirmode = DIRECTORY_MODE_NORMAL; + $dirmode = get_config('system', 'directory_mode', DIRECTORY_MODE_NORMAL); - if(($dirmode == DIRECTORY_MODE_PRIMARY) || ($dirmode == DIRECTORY_MODE_STANDALONE)) { + if($dirmode == DIRECTORY_MODE_STANDALONE) { + poco_load('', z_root() . '/poco'); + return; + } + + if($dirmode == DIRECTORY_MODE_PRIMARY) { $url = z_root() . '/sitelist'; } else { |