X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdirectory.php;h=aed700fa8ac2ac593ad9f10a1e0b506bdf6865e5;hb=dbe8275ae5de7610ce21c90088b94a1e18d02921;hp=356118bb08d5ca1dbef2ec824399275732768de2;hpb=eb3408b5745a87014d8b233e97072b8f7fa35e65;p=friendica.git diff --git a/include/directory.php b/include/directory.php index 356118bb08..aed700fa8a 100644 --- a/include/directory.php +++ b/include/directory.php @@ -10,7 +10,7 @@ function directory_run(&$argv, &$argc){ if(is_null($db)) { @include(".htconfig.php"); - require_once("dba.php"); + require_once("include/dba.php"); $db = new dba($db_host, $db_user, $db_pass, $db_data); unset($db_host, $db_user, $db_pass, $db_data); }; @@ -38,6 +38,7 @@ function directory_run(&$argv, &$argc){ call_hooks('globaldir_update', $arr); + logger('Updating directory: ' . $arr['url'], LOGGER_DEBUG); if(strlen($arr['url'])) fetch_url($dir . '?url=' . bin2hex($arr['url'])); @@ -45,6 +46,6 @@ function directory_run(&$argv, &$argc){ } if (array_search(__file__,get_included_files())===0){ - directory_run($argv,$argc); + directory_run($_SERVER["argv"],$_SERVER["argc"]); killme(); }