X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fviewsrc.php;h=7ed029aa78100f6cc118c05de0a4450644ce9b3a;hb=620395378e2397de1a99877b2ebcf917742807d2;hp=2b91d6fc42b95da9c201b06ebb9becebf67afea9;hpb=0ec44f3e8a73229c3aadea86f61b5571a701c6b7;p=friendica.git diff --git a/mod/viewsrc.php b/mod/viewsrc.php index 2b91d6fc42..7ed029aa78 100644 --- a/mod/viewsrc.php +++ b/mod/viewsrc.php @@ -25,8 +25,8 @@ function viewsrc_content(App $a) $item = Item::selectFirst(['body'], ['uid' => local_user(), 'id' => $item_id]); - if (DBA::is_result($item)) { - if (is_ajax()) { + if (DBA::isResult($item)) { + if ($a->isAjax()) { echo str_replace("\n", '
', $item['body']); killme(); } else {