]> git.mxchange.org Git - friendica.git/blobdiff - mod/viewsrc.php
Merge pull request #6469 from annando/diaspora-priority
[friendica.git] / mod / viewsrc.php
index 4b511eab13f2d501bbd48286e3f97a807d7189ff..7ed029aa78100f6cc118c05de0a4450644ce9b3a 100644 (file)
@@ -4,7 +4,7 @@
  */
 use Friendica\App;
 use Friendica\Core\L10n;
-use Friendica\Database\DBM;
+use Friendica\Database\DBA;
 use Friendica\Model\Item;
 
 function viewsrc_content(App $a)
@@ -25,12 +25,12 @@ function viewsrc_content(App $a)
 
        $item = Item::selectFirst(['body'], ['uid' => local_user(), 'id' => $item_id]);
 
-       if (DBM::is_result($item)) {
-               if (is_ajax()) {
-                       echo str_replace("\n",'<br />',$item['body']);
+       if (DBA::isResult($item)) {
+               if ($a->isAjax()) {
+                       echo str_replace("\n", '<br />', $item['body']);
                        killme();
                } else {
-                       $o .= str_replace("\n",'<br />',$item['body']);
+                       $o .= str_replace("\n", '<br />', $item['body']);
                }
        }
        return $o;