mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 18:08:49 +00:00
Rename DBM method calls to DBA method calls
This commit is contained in:
parent
8cdacf34b1
commit
332ea212b5
11 changed files with 79 additions and 87 deletions
|
@ -11,7 +11,7 @@ use Friendica\Content\Widget;
|
|||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Database\DBM;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Model\Profile;
|
||||
use Friendica\Util\Temporal;
|
||||
|
||||
|
@ -107,7 +107,7 @@ function forumdirectory_content(&$a)
|
|||
|
||||
$r = q("SELECT COUNT(*) AS `total` FROM `profile` LEFT JOIN `user` ON `user`.`uid` = `profile`.`uid`"
|
||||
. " WHERE `is-default` = 1 $publish AND `user`.`blocked` = 0 AND `page-flags` = 2 $sql_extra ");
|
||||
if (DBM::is_result($r)) {
|
||||
if (DBA::is_result($r)) {
|
||||
$a->set_pager_total($r[0]['total']);
|
||||
}
|
||||
|
||||
|
@ -120,7 +120,7 @@ function forumdirectory_content(&$a)
|
|||
intval($a->pager['itemspage'])
|
||||
);
|
||||
|
||||
if (DBM::is_result($r)) {
|
||||
if (DBA::is_result($r)) {
|
||||
if (in_array('small', $a->argv)) {
|
||||
$photo = 'thumb';
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue