]> git.mxchange.org Git - friendica.git/blobdiff - mod/viewsrc.php
Catch HTTPExceptions in App::runFrontend()
[friendica.git] / mod / viewsrc.php
index afdcaada2235480620838ceddf53d6d1a1148b36..7ed029aa78100f6cc118c05de0a4450644ce9b3a 100644 (file)
@@ -26,7 +26,7 @@ function viewsrc_content(App $a)
        $item = Item::selectFirst(['body'], ['uid' => local_user(), 'id' => $item_id]);
 
        if (DBA::isResult($item)) {
-               if (is_ajax()) {
+               if ($a->isAjax()) {
                        echo str_replace("\n", '<br />', $item['body']);
                        killme();
                } else {