Rename DBM method calls to DBA method calls
This commit is contained in:
committed by
Hypolite Petovan
parent
8ddb94ef06
commit
0ec44f3e8a
@@ -5,7 +5,6 @@ namespace Friendica\Core\Config;
|
||||
use Exception;
|
||||
use Friendica\BaseObject;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Database\DBM;
|
||||
|
||||
require_once 'include/dba.php';
|
||||
|
||||
@@ -52,7 +51,7 @@ class PreloadPConfigAdapter extends BaseObject implements IPConfigAdapter
|
||||
|
||||
if ($refresh) {
|
||||
$config = DBA::selectFirst('pconfig', ['v'], ['uid' => $uid, 'cat' => $cat, 'k' => $k]);
|
||||
if (DBM::is_result($config)) {
|
||||
if (DBA::is_result($config)) {
|
||||
self::getApp()->setPConfigValue($uid, $cat, $k, $config['v']);
|
||||
} else {
|
||||
self::getApp()->deletePConfigValue($uid, $cat, $k);
|
||||
|
||||
Reference in New Issue
Block a user