]> git.mxchange.org Git - friendica.git/blobdiff - include/directory.php
Added some more timestamp measuring
[friendica.git] / include / directory.php
index 356118bb08d5ca1dbef2ec824399275732768de2..aed700fa8ac2ac593ad9f10a1e0b506bdf6865e5 100644 (file)
@@ -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();
 }