X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FWorker%2FDirectory.php;h=d6294d049893a6049e0deaebd4461cdb2709793a;hb=d34432c517a97a5d1b61fd90e117c1a9cb3e172c;hp=95d3b3bcc8d6f330b8f83c78723b76d4f6033ee9;hpb=73c3b21665e7e22c4c9908272279d9605282acca;p=friendica.git diff --git a/src/Worker/Directory.php b/src/Worker/Directory.php index 95d3b3bcc8..d6294d0498 100644 --- a/src/Worker/Directory.php +++ b/src/Worker/Directory.php @@ -23,6 +23,7 @@ namespace Friendica\Worker; use Friendica\Core\Hook; use Friendica\Core\Logger; +use Friendica\Core\Search; use Friendica\Core\Worker; use Friendica\Database\DBA; use Friendica\DI; @@ -35,7 +36,7 @@ class Directory { public static function execute($url = '') { - $dir = DI::config()->get('system', 'directory'); + $dir = Search::getGlobalDirectory(); if (!strlen($dir)) { return; @@ -54,7 +55,7 @@ class Directory Logger::info('Updating directory: ' . $arr['url']); if (strlen($arr['url'])) { - DI::httpClient()->fetch($dir . '?url=' . bin2hex($arr['url']), 0, HttpClientAccept::HTML); + DI::httpClient()->fetch($dir . '?url=' . bin2hex($arr['url']), HttpClientAccept::HTML); } return;