mirror of
https://github.com/friendica/friendica
synced 2025-04-26 15:10:11 +00:00
Rename DBM method calls to DBA method calls
This commit is contained in:
parent
8ddb94ef06
commit
0ec44f3e8a
153 changed files with 813 additions and 918 deletions
|
@ -10,7 +10,6 @@ use Friendica\Core\L10n;
|
|||
use Friendica\Core\PConfig;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Database\DBM;
|
||||
use Friendica\Model\Item;
|
||||
use Friendica\Protocol\DFRN;
|
||||
use Friendica\Protocol\Feed;
|
||||
|
@ -266,7 +265,7 @@ function consume_feed($xml, $importer, $contact, &$hub, $datedir = 0, $pass = 0)
|
|||
WHERE `contact`.`id` = %d AND `user`.`uid` = %d",
|
||||
dbesc($contact["id"]), dbesc($importer["uid"])
|
||||
);
|
||||
if (DBM::is_result($r)) {
|
||||
if (DBA::is_result($r)) {
|
||||
logger("Now import the DFRN feed");
|
||||
DFRN::import($xml, $r[0], true);
|
||||
return;
|
||||
|
@ -290,7 +289,7 @@ function subscribe_to_hub($url, $importer, $contact, $hubmode = 'subscribe') {
|
|||
* through the direct Diaspora protocol. If we try and use
|
||||
* the feed, we'll get duplicates. So don't.
|
||||
*/
|
||||
if ((!DBM::is_result($r)) || $contact['network'] === NETWORK_DIASPORA) {
|
||||
if ((!DBA::is_result($r)) || $contact['network'] === NETWORK_DIASPORA) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -341,7 +340,7 @@ function drop_item($id) {
|
|||
$fields = ['id', 'uid', 'contact-id', 'deleted'];
|
||||
$item = Item::selectFirstForUser(local_user(), $fields, ['id' => $id]);
|
||||
|
||||
if (!DBM::is_result($item)) {
|
||||
if (!DBA::is_result($item)) {
|
||||
notice(L10n::t('Item not found.') . EOL);
|
||||
goaway(System::baseUrl() . '/' . $_SESSION['return_url']);
|
||||
}
|
||||
|
@ -462,7 +461,7 @@ function posted_date_widget($url, $uid, $wall) {
|
|||
|
||||
$ret = list_post_dates($uid, $wall);
|
||||
|
||||
if (!DBM::is_result($ret)) {
|
||||
if (!DBA::is_result($ret)) {
|
||||
return $o;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue