// 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")) {
// 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'));