use Friendica\Core\Config;
use Friendica\Core\System;
use Friendica\Database\DBA;
-use Friendica\Database\DBM;
use Friendica\Model\Photo;
use Friendica\Object\Image;
use Friendica\Util\DateTimeFormat;
$photo = null;
if (!$direct_cache && ($cachefile == '')) {
$photo = DBA::selectFirst('photo', ['data', 'desc'], ['resource-id' => $urlhash]);
- if (DBM::is_result($photo)) {
+ if (DBA::is_result($photo)) {
$img_str = $photo['data'];
$mime = $photo['desc'];
if ($mime == '') {
}
}
- if (!DBM::is_result($photo)) {
+ if (!DBA::is_result($photo)) {
// It shouldn't happen but it does - spaces in URL
$_REQUEST['url'] = str_replace(' ', '+', $_REQUEST['url']);
$redirects = 0;