]> git.mxchange.org Git - friendica.git/blobdiff - include/discover_poco.php
Misc changes to url_from_contact_guid
[friendica.git] / include / discover_poco.php
index 8ba2bb2365afcfaf71350f6ade1217ab256944a6..bf3e47edd9a514acde02b4dcb5cdcb8d00a676be 100644 (file)
@@ -26,7 +26,7 @@ function discover_poco_run(&$argv, &$argc){
 
        // 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")) {
@@ -44,7 +44,7 @@ function discover_poco_run(&$argv, &$argc){
 
        // Don't check this stuff if the function is called by the poller
        if (App::callstack() != "poller_run")
-               if (App::is_already_running('include/discover_poco.php', 'discover_poco'.$mode.urlencode($search), 1140))
+               if (App::is_already_running('discover_poco'.$mode.urlencode($search), 'include/discover_poco.php', 1140))
                        return;
 
        $a->set_baseurl(get_config('system','url'));