mirror of
https://github.com/friendica/friendica
synced 2025-04-27 15:10:11 +00:00
Rename Friendica\Database\dba to Friendica\Database\DBA
This commit is contained in:
parent
b6a1df0598
commit
af6dbc654f
127 changed files with 1169 additions and 1169 deletions
|
@ -15,7 +15,7 @@ use Friendica\Core\Cache;
|
|||
use Friendica\Core\Config;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Database\dba;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Database\DBM;
|
||||
use Friendica\Util\DateTimeFormat;
|
||||
use Friendica\Util\Network;
|
||||
|
@ -63,7 +63,7 @@ class OEmbed
|
|||
$a = get_app();
|
||||
|
||||
$condition = ['url' => normalise_link($embedurl), 'maxwidth' => $a->videowidth];
|
||||
$oembed = dba::selectFirst('oembed', ['content'], $condition);
|
||||
$oembed = DBA::selectFirst('oembed', ['content'], $condition);
|
||||
if (DBM::is_result($oembed)) {
|
||||
$txt = $oembed["content"];
|
||||
} else {
|
||||
|
@ -110,7 +110,7 @@ class OEmbed
|
|||
} else { //save in cache
|
||||
$j = json_decode($txt);
|
||||
if (!empty($j->type) && $j->type != "error") {
|
||||
dba::insert('oembed', [
|
||||
DBA::insert('oembed', [
|
||||
'url' => normalise_link($embedurl),
|
||||
'maxwidth' => $a->videowidth,
|
||||
'content' => $txt,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue