]> 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 bf3e47edd9a514acde02b4dcb5cdcb8d00a676be..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,8 +22,7 @@ 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")
@@ -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);