directory interface cleanup and documentation so that debugging realms won't be stabbing in the dark.

This commit is contained in:
friendica
2015-02-19 17:42:18 -08:00
parent 8db3677546
commit 8c71e0e861
2 changed files with 53 additions and 6 deletions
+5 -1
View File
@@ -38,7 +38,9 @@ function directory_run($argv, $argc){
$channel = $x[0];
if(($dirmode == DIRECTORY_MODE_PRIMARY) || ($dirmode == DIRECTORY_MODE_STANDALONE)) {
if($dirmode != DIRECTORY_MODE_NORMAL) {
// this is an in-memory update and we don't need to send a network packet.
local_dir_update($argv[1],$force);
@@ -54,6 +56,8 @@ function directory_run($argv, $argc){
return;
}
// otherwise send the changes upstream
$directory = find_upstream_directory($dirmode);
$url = $directory['url'] . '/post';