X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fviewsrc.php;h=a607498442b547c3aab5e416238425fa7662bfae;hb=93ca0d79fe3f68e2b9942b1c251475065add2f81;hp=8900e44db446663bde0c5b29c59ebe72e577b297;hpb=8aa25523721303b6883e1a793f20997f8a33ec0a;p=friendica.git diff --git a/mod/viewsrc.php b/mod/viewsrc.php old mode 100755 new mode 100644 index 8900e44db4..a607498442 --- a/mod/viewsrc.php +++ b/mod/viewsrc.php @@ -1,9 +1,11 @@ ',$r[0]['body']); + if (DBM::is_result($r)) + if(is_ajax()) { + echo str_replace("\n",'
',$r[0]['body']); + killme(); + } else { + $o .= str_replace("\n",'
',$r[0]['body']); + } return $o; }