Move Objects to Model

- Object\Photo -> Object\Image and Model\Photo
- Object\Contact -> Model\Contact
- Model\GlobalContact -> Model\GContact
This commit is contained in:
Hypolite Petovan 2017-12-07 20:16:42 -05:00
parent be1342fe5d
commit 34396fedfe
3 changed files with 13 additions and 12 deletions

View file

@ -11,7 +11,7 @@ define('FROMGPLUS_DEFAULT_POLL_INTERVAL', 30); // given in minutes
use Friendica\Core\Config;
use Friendica\Core\PConfig;
use Friendica\Object\Photo;
use Friendica\Object\Image;
require_once 'mod/share.php';
require_once 'mod/parse_url.php';
@ -264,12 +264,12 @@ function fromgplus_cleanupgoogleproxy($fullImage, $image) {
}
if ($cleaned["full"] != "")
$infoFull = Photo::getInfoFromURL($cleaned["full"]);
$infoFull = Image::getInfoFromURL($cleaned["full"]);
else
$infoFull = array("0" => 0, "1" => 0);
if ($cleaned["preview"] != "")
$infoPreview = Photo::getInfoFromURL($cleaned["preview"]);
$infoPreview = Image::getInfoFromURL($cleaned["preview"]);
else
$infoFull = array("0" => 0, "1" => 0);
@ -352,9 +352,9 @@ function fromgplus_handleattachments($a, $uid, $item, $displaytext, $shared) {
$images = fromgplus_cleanupgoogleproxy($attachment->fullImage, $attachment->image);
} else {
if ($attachment->fullImage->url != "") {
$images = Photo::storePhoto($a, $uid, "", $attachment->fullImage->url);
$images = Image::storePhoto($a, $uid, "", $attachment->fullImage->url);
} elseif ($attachment->image->url != "") {
$images = Photo::storePhoto($a, $uid, "", $attachment->image->url);
$images = Image::storePhoto($a, $uid, "", $attachment->image->url);
}
}