diff options
author | friendica <info@friendica.com> | 2012-04-17 06:11:41 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-04-17 06:11:41 -0700 |
commit | e6330e3b966401f83d54bdd08c9ed9ab294643e0 (patch) | |
tree | 91a455cfadfa4b700f605a44b83b9ff05987bf89 /mod/wall_attach.php | |
parent | a7421990350e2409ee90957dab37e1ff1fc272df (diff) | |
download | volse-hubzilla-e6330e3b966401f83d54bdd08c9ed9ab294643e0.tar.gz volse-hubzilla-e6330e3b966401f83d54bdd08c9ed9ab294643e0.tar.bz2 volse-hubzilla-e6330e3b966401f83d54bdd08c9ed9ab294643e0.zip |
naked br appearing when attaching and textplain
Diffstat (limited to 'mod/wall_attach.php')
-rw-r--r-- | mod/wall_attach.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mod/wall_attach.php b/mod/wall_attach.php index bee7c29dc..03d9f5105 100644 --- a/mod/wall_attach.php +++ b/mod/wall_attach.php @@ -98,8 +98,13 @@ function wall_attach_post(&$a) { killme(); } - echo '<br /><br />[attachment]' . $r[0]['id'] . '[/attachment]' . '<br />'; + $lf = '<br />'; + if(local_user() && intval(get_pconfig(local_user(),'system','plaintext'))) + $lf = "\n"; + + echo $lf . $lf . '[attachment]' . $r[0]['id'] . '[/attachment]' . $lf; + killme(); // NOTREACHED } |