]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/Directory.php
Ignore if the worker was added
[friendica.git] / src / Worker / Directory.php
index 95d3b3bcc8d6f330b8f83c78723b76d4f6033ee9..d6294d049893a6049e0deaebd4461cdb2709793a 100644 (file)
@@ -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;