summaryrefslogtreecommitdiff
path: root/actions/newnotice.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/newnotice.php')
-rw-r--r--actions/newnotice.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/actions/newnotice.php b/actions/newnotice.php
index 932099c60..8ac36320d 100644
--- a/actions/newnotice.php
+++ b/actions/newnotice.php
@@ -66,7 +66,11 @@ class NewnoticeAction extends Action {
$cmd = $inter->handle_command($user, $content_shortened);
if ($cmd) {
- $cmd->execute(new WebChannel());
+ if ($this->boolean('ajax')) {
+ $cmd->execute(new AjaxWebChannel());
+ } else {
+ $cmd->execute(new WebChannel());
+ }
return;
}