X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fviewsrc.php;h=3fa4eaed53bad2b53686a59aef0af30acf1f5645;hb=41fe07e12821a25e3ad8279abc5344b8bbe011ab;hp=94847ec7b92c55dfdbf84fbe199146d1b89cb367;hpb=a76a497d924a16b8b07b126408db21655aac3bd6;p=friendica.git diff --git a/mod/viewsrc.php b/mod/viewsrc.php old mode 100755 new mode 100644 index 94847ec7b9..3fa4eaed53 --- a/mod/viewsrc.php +++ b/mod/viewsrc.php @@ -25,7 +25,12 @@ function viewsrc_content(&$a) { ); if(count($r)) - $o .= str_replace("\n",'
',$r[0]['body']); + if(is_ajax()) { + echo str_replace("\n",'
',$r[0]['body']); + killme(); + } else { + $o .= str_replace("\n",'
',$r[0]['body']); + } return $o; }