]> git.mxchange.org Git - friendica.git/commitdiff
Second bugfix to PR 4036
authorMichael <heluecht@pirati.ca>
Fri, 8 Dec 2017 06:15:06 +0000 (06:15 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 8 Dec 2017 06:15:06 +0000 (06:15 +0000)
src/Model/Contact.php

index 3708603ba33051cd5d2656e5b0f291843bff1ebf..e790fd4843abd17e88058966edde8ec7c61b91fd 100644 (file)
@@ -12,7 +12,7 @@ use Friendica\Core\System;
 use Friendica\Core\Worker;
 use Friendica\Database\DBM;
 use Friendica\Network\Probe;
-use Friendica\Object\Image;
+use Friendica\Model\Photo;
 use Friendica\Protocol\Diaspora;
 use Friendica\Protocol\DFRN;
 use Friendica\Protocol\OStatus;
@@ -921,7 +921,7 @@ class Contact extends BaseObject
                }
 
                if (($r["avatar"] != $avatar) || $force) {
-                       $photos = Image::importProfilePhoto($avatar, $uid, $cid, true);
+                       $photos = Photo::importProfilePhoto($avatar, $uid, $cid, true);
 
                        if ($photos) {
                                dba::update(