diff options
author | friendica <info@friendica.com> | 2013-06-18 02:51:43 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-06-18 02:51:43 -0700 |
commit | 6220ab4b549e8a754b2d331d4e8b4fae36e8f98f (patch) | |
tree | 9de23114aff0cf4cedc7c43a056e5fb58132bb73 /include/directory.php | |
parent | c0cc494bf36a61885bc3391e6f05b48baafb312a (diff) | |
download | volse-hubzilla-6220ab4b549e8a754b2d331d4e8b4fae36e8f98f.tar.gz volse-hubzilla-6220ab4b549e8a754b2d331d4e8b4fae36e8f98f.tar.bz2 volse-hubzilla-6220ab4b549e8a754b2d331d4e8b4fae36e8f98f.zip |
fix profile update propagation
Diffstat (limited to 'include/directory.php')
-rw-r--r-- | include/directory.php | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/include/directory.php b/include/directory.php index 5f3696a58..c286f5683 100644 --- a/include/directory.php +++ b/include/directory.php @@ -19,11 +19,6 @@ function directory_run($argv, $argc){ if($dirmode === false) $dirmode = DIRECTORY_MODE_NORMAL; - if(($dirmode == DIRECTORY_MODE_PRIMARY) || ($dirmode == DIRECTORY_MODE_STANDALONE)) { - syncdirs($argv[1]); - return; - } - $x = q("select * from channel where channel_id = %d limit 1", intval($argv[1]) ); @@ -32,6 +27,15 @@ function directory_run($argv, $argc){ $channel = $x[0]; + + if(($dirmode == DIRECTORY_MODE_PRIMARY) || ($dirmode == DIRECTORY_MODE_STANDALONE)) { + syncdirs($argv[1]); + + // Now update all the connections + proc_run('php','include/notifier.php','refresh_all',$channel['channel_id']); + return; + } + $directory = find_upstream_directory($dirmode); if($directory) { @@ -49,7 +53,7 @@ function directory_run($argv, $argc){ // Now update all the connections - proc_run('php','notifier','refresh_all',$channel['channel_id']); + proc_run('php','include/notifier.php','refresh_all',$channel['channel_id']); } |