]> git.mxchange.org Git - friendica.git/blobdiff - include/discover_poco.php
Merge pull request #3213 from Hypolite/issue/#2792-2
[friendica.git] / include / discover_poco.php
index 0b468faea189e522505ed5c686facd22be905406..10c741ae5f10aa78b0510ecdc9d2bdfe9567bc14 100644 (file)
@@ -1,9 +1,10 @@
 <?php
 
+use \Friendica\Core\Config;
+
 require_once("boot.php");
 require_once("include/socgraph.php");
 
-
 function discover_poco_run(&$argv, &$argc){
        global $a, $db;
 
@@ -21,12 +22,11 @@ function discover_poco_run(&$argv, &$argc){
        require_once('include/session.php');
        require_once('include/datetime.php');
 
-       load_config('config');
-       load_config('system');
+       Config::load();
 
        // Don't check this stuff if the function is called by the poller
        if (App::callstack() != "poller_run")
-               if (App::maxload_reached())
+               if ($a->maxload_reached())
                        return;
 
        if(($argc > 2) && ($argv[1] == "dirsearch")) {
@@ -186,6 +186,10 @@ function discover_directory($search) {
  */
 function gs_search_user($search) {
 
+       // Currently disabled, since the service isn't available anymore.
+       // It is not removed since I hope that there will be a successor.
+       return false;
+
        $a = get_app();
 
        $url = "http://gstools.org/api/users_search/".urlencode($search);