Rename Model\GlobalContact to Model\GContact

This commit is contained in:
Hypolite Petovan 2017-12-07 09:09:28 -05:00
commit bc58e8d3be
23 changed files with 71 additions and 71 deletions

View file

@ -6,7 +6,7 @@
use Friendica\Core\Config;
use Friendica\Database\DBM;
use Friendica\Model\Contact;
use Friendica\Model\GlobalContact;
use Friendica\Model\GContact;
/**
* @brief Calls the post update functions
@ -74,7 +74,7 @@ function post_update_1192() {
// Set the "gcontact-id" in the item table and add a new gcontact entry if needed
foreach ($item_arr AS $item) {
$gcontact_id = GlobalContact::getId(array("url" => $item['author-link'], "network" => $item['network'],
$gcontact_id = GContact::getId(array("url" => $item['author-link'], "network" => $item['network'],
"photo" => $item['author-avatar'], "name" => $item['author-name']));
q("UPDATE `item` SET `gcontact-id` = %d WHERE `uid` = %d AND `author-link` = '%s' AND `gcontact-id` = 0",
intval($gcontact_id), intval($item["uid"]), dbesc($item["author-link"]));