]> git.mxchange.org Git - friendica.git/blobdiff - include/gprobe.php
Merge pull request #3792 from annando/dead-contacts
[friendica.git] / include / gprobe.php
index e79cc64764a3265211bf4f4458cbaeb39e77aff8..9fb93e9596a2dd81a3ce2c1b31d26b0404a74f32 100644 (file)
@@ -1,16 +1,16 @@
 <?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) {
                return;
        }
-       $url = hex2bin($argv[1]);
+       $url = $argv[1];
 
        $r = q("SELECT `id`, `url`, `network` FROM `gcontact` WHERE `nurl` = '%s' ORDER BY `id` LIMIT 1",
                dbesc(normalise_link($url))
@@ -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']));
        }