Haha, forgot that the $content content must also be there!
This commit is contained in:
parent
34093388a7
commit
d73c264e25
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user