diff options
author | Michael Vogel <icarus@dabo.de> | 2012-03-28 19:52:30 +0200 |
---|---|---|
committer | Michael Vogel <icarus@dabo.de> | 2012-03-28 19:52:30 +0200 |
commit | bdd275474044152a5d9a33ea6b8a8071b931d27e (patch) | |
tree | b10c2b68e0236925992449786d70f45aaca21984 /mod/viewsrc.php | |
parent | 792edfe9c834e3daeae598727e4cb15dc0ff8475 (diff) | |
parent | e894775a39920edc0e438364c818357ab809bace (diff) | |
download | volse-hubzilla-bdd275474044152a5d9a33ea6b8a8071b931d27e.tar.gz volse-hubzilla-bdd275474044152a5d9a33ea6b8a8071b931d27e.tar.bz2 volse-hubzilla-bdd275474044152a5d9a33ea6b8a8071b931d27e.zip |
Merge commit 'upstream/master'
Diffstat (limited to 'mod/viewsrc.php')
-rwxr-xr-x | mod/viewsrc.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mod/viewsrc.php b/mod/viewsrc.php index 94847ec7b..3fa4eaed5 100755 --- a/mod/viewsrc.php +++ b/mod/viewsrc.php @@ -25,7 +25,12 @@ function viewsrc_content(&$a) { ); if(count($r)) - $o .= str_replace("\n",'<br />',$r[0]['body']); + if(is_ajax()) { + echo str_replace("\n",'<br />',$r[0]['body']); + killme(); + } else { + $o .= str_replace("\n",'<br />',$r[0]['body']); + } return $o; } |