summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-08-11 15:56:40 -0700
committerBrion Vibber <brion@pobox.com>2010-08-11 15:56:40 -0700
commit6ee3f35302d739a5be1287839bfbb13ec86c1800 (patch)
treeea4c3169f16f6cabbac84d87bbf41c5ebbb6db00 /actions
parent3c28464daba8cbb2d8362c38ebb8e2c41ff5049f (diff)
work in progress: prettier attachment mode for tinymce?
Diffstat (limited to 'actions')
-rw-r--r--actions/newnotice.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/actions/newnotice.php b/actions/newnotice.php
index 8263198f7..8f1fb1c40 100644
--- a/actions/newnotice.php
+++ b/actions/newnotice.php
@@ -169,7 +169,10 @@ class NewnoticeAction extends Action
if (isset($upload)) {
- $content_shortened .= ' ' . $upload->shortUrl();
+ if (Event::handle('StartSaveNewNoticeAppendAttachment', array($this, $upload, &$content_shortened, &$options))) {
+ $content_shortened .= ' ' . $upload->shortUrl();
+ }
+ Event::handle('EndSaveNewNoticeAppendAttachment', array($this, $upload, &$content_shortened, &$options));
if (Notice::contentTooLong($content_shortened)) {
$upload->delete();