]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/GProbe.php
Merge pull request #4143 from annando/comment-public
[friendica.git] / src / Worker / GProbe.php
index bfe277fe09c07760bbde7c04207be578dbaee70b..0d8c3765a8dea74d42e03dbc7a3bb4a1e55047af 100644 (file)
@@ -1,18 +1,21 @@
 <?php
 /**
- * @file include/gprobe.php
+ * @file src/Worker/GProbe.php
  */
+
+namespace Friendica\Worker;
+
 use Friendica\Core\Cache;
 use Friendica\Core\Config;
 use Friendica\Database\DBM;
-use Friendica\Model\GlobalContact;
+use Friendica\Model\GContact;
 use Friendica\Network\Probe;
 use Friendica\Protocol\PortableContact;
 
 require_once 'include/datetime.php';
 
 class GProbe {
-       function execute($url = '')
+       public static function execute($url = '')
        {
                if (empty($url)) {
                        return;
@@ -44,7 +47,7 @@ class GProbe {
                        }
 
                        if (!in_array($arr["network"], array(NETWORK_FEED, NETWORK_PHANTOM))) {
-                               GlobalContact::update($arr);
+                               GContact::update($arr);
                        }
 
                        $r = q(