X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fproxy.php;h=8b5f0834f297dab95905dbf939c74b8e887bb619;hb=09667dd82bbb9bb23a4ad8d86c1e9f3146665aa5;hp=601fb79637de3d1556dcf319b015cf77533d3d6b;hpb=acb4630eed14175ef35f09e21609d6329f3f990c;p=friendica.git diff --git a/mod/proxy.php b/mod/proxy.php index 601fb79637..8b5f0834f2 100644 --- a/mod/proxy.php +++ b/mod/proxy.php @@ -4,6 +4,7 @@ use Friendica\App; use Friendica\Core\Config; use Friendica\Core\System; +use Friendica\Database\DBM; define('PROXY_DEFAULT_TIME', 86400); // 1 Day @@ -144,7 +145,7 @@ function proxy_init(App $a) { if (!$direct_cache && ($cachefile == '')) { $r = dba::select('photo', array('data', 'desc'), array('resource-id' => $urlhash), array('limit' => 1)); - if (dbm::is_result($r)) { + if (DBM::is_result($r)) { $img_str = $r['data']; $mime = $r['desc']; if ($mime == '') { @@ -153,7 +154,7 @@ function proxy_init(App $a) { } } - if (!dbm::is_result($r)) { + if (!DBM::is_result($r)) { // It shouldn't happen but it does - spaces in URL $_REQUEST['url'] = str_replace(' ', '+', $_REQUEST['url']); $redirects = 0;