- if (isset($upload)) {
- $upload->attachToNotice($notice);
- }
- Event::handle('EndSaveNewNoticeWeb', array($this, $user, &$content_shortened, &$options));
-
- if ($this->boolean('ajax')) {
- header('Content-Type: text/xml;charset=utf-8');
- $this->xw->startDocument('1.0', 'UTF-8');
- $this->elementStart('html');
- $this->elementStart('head');
- $this->element('title', null, _('Notice posted'));
- $this->elementEnd('head');
- $this->elementStart('body');
- $this->showNotice($notice);
- $this->elementEnd('body');
- $this->elementEnd('html');
- } else {
- $returnto = $this->trimmed('returnto');