Haha, forgot that the $content content must also be there!

This commit is contained in:
Mikael Nordfeldth 2016-01-27 23:04:19 +01:00
parent 34093388a7
commit d73c264e25
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ class NewnoticeAction extends FormAction
// throws exception on failure
$upload = MediaFile::fromUpload('attach', $this->scoped);
if (Event::handle('StartSaveNewNoticeAppendAttachment', array($this, $upload, &$content, &$options))) {
$content = ($content==='' ? '' : ' ') . $upload->shortUrl();
$content .= ($content==='' ? '' : ' ') . $upload->shortUrl();
}
Event::handle('EndSaveNewNoticeAppendAttachment', array($this, $upload, &$content, &$options));