]> git.mxchange.org Git - friendica.git/blobdiff - mod/viewsrc.php
Catch HTTPExceptions in App::runFrontend()
[friendica.git] / mod / viewsrc.php
index 2b91d6fc42b95da9c201b06ebb9becebf67afea9..7ed029aa78100f6cc118c05de0a4450644ce9b3a 100644 (file)
@@ -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", '<br />', $item['body']);
                        killme();
                } else {