Commit d73c264e authored by mmn's avatar mmn

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

parent 34093388
......@@ -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));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment