use Friendica\App;
use Friendica\Core\System;
+use Friendica\Core\Worker;
+ use Friendica\Core\Config;
+ use Friendica\Core\PConfig;
require_once('include/group.php');
require_once('include/socgraph.php');
if (($old_visibility != $net_publish) || ($page_flags != $old_page_flags)) {
// Update global directory in background
$url = $_SESSION['my_url'];
- if ($url && strlen(get_config('system','directory'))) {
+ if ($url && strlen(Config::get('system', 'directory'))) {
- proc_run(PRIORITY_LOW, "include/directory.php", $url);
+ Worker::add(PRIORITY_LOW, "directory", $url);
}
}