]> git.mxchange.org Git - friendica.git/blobdiff - include/gprobe.php
Fetching new queue tasks in a bulk to increase speed
[friendica.git] / include / gprobe.php
index e79cc64764a3265211bf4f4458cbaeb39e77aff8..788a9eb0447fef3ca489dfb0b26cbbbd90380092 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 
-use \Friendica\Core\Config;
+use Friendica\Core\Config;
 
-require_once('include/Scrape.php');
-require_once('include/socgraph.php');
-require_once('include/datetime.php');
+require_once 'include/probe.php';
+require_once 'include/socgraph.php';
+require_once 'include/datetime.php';
 
 function gprobe_run(&$argv, &$argc){
        if ($argc != 2) {
@@ -47,7 +47,7 @@ function gprobe_run(&$argv, &$argc){
        }
        if (dbm::is_result($r)) {
                // Check for accessibility and do a poco discovery
-               if (poco_last_updated($r[0]['url'], true) AND ($r[0]["network"] == NETWORK_DFRN))
+               if (poco_last_updated($r[0]['url'], true) && ($r[0]["network"] == NETWORK_DFRN))
                        poco_load(0,0,$r[0]['id'], str_replace('/profile/','/poco/',$r[0]['url']));
        }