1
0
Fork 0

Rename DBM method calls to DBA method calls

This commit is contained in:
Hypolite Petovan 2018-07-21 08:40:21 -04:00 committed by Hypolite Petovan
commit 0ec44f3e8a
153 changed files with 813 additions and 918 deletions

View file

@ -6,7 +6,7 @@ use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Database\DBM;
use Friendica\Database\DBA;
use Friendica\Model\Profile;
function profperm_init(App $a)
@ -51,7 +51,7 @@ function profperm_content(App $a) {
intval($a->argv[2]),
intval(local_user())
);
if (DBM::is_result($r))
if (DBA::is_result($r))
$change = intval($a->argv[2]);
}
@ -61,7 +61,7 @@ function profperm_content(App $a) {
intval($a->argv[1]),
intval(local_user())
);
if (! DBM::is_result($r)) {
if (! DBA::is_result($r)) {
notice(L10n::t('Invalid profile identifier.') . EOL );
return;
}
@ -73,7 +73,7 @@ function profperm_content(App $a) {
);
$ingroup = [];
if (DBM::is_result($r))
if (DBA::is_result($r))
foreach($r as $member)
$ingroup[] = $member['id'];
@ -103,7 +103,7 @@ function profperm_content(App $a) {
$members = $r;
$ingroup = [];
if (DBM::is_result($r))
if (DBA::is_result($r))
foreach($r as $member)
$ingroup[] = $member['id'];
}
@ -147,7 +147,7 @@ function profperm_content(App $a) {
dbesc(NETWORK_DFRN)
);
if (DBM::is_result($r)) {
if (DBA::is_result($r)) {
$textmode = (($switchtotext && (count($r) > $switchtotext)) ? true : false);
foreach($r as $member) {
if(! in_array($member['id'],$ingroup)) {