summaryrefslogtreecommitdiff
path: root/actions/newnotice.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-02-04 07:59:30 -0500
committerEvan Prodromou <evan@controlyourself.ca>2009-02-04 07:59:30 -0500
commit2d063650effb22c90936a4588f44946c69e1d9a1 (patch)
treef113d39dc54a58eab425e01e29edb4ee6b249ad6 /actions/newnotice.php
parent15b96f78ab9c294e6e20ff2411662793dae1e2d9 (diff)
Make WebChannel and AjaxWebChannel work
These command-output channels were using the old common_element_* functions. They now take an $out constructor parameter, and use that for output. The WebChannel has pretty remedial output; it would be nice if it output a real formatted page.
Diffstat (limited to 'actions/newnotice.php')
-rw-r--r--actions/newnotice.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/newnotice.php b/actions/newnotice.php
index e3974cd07..61f0f8365 100644
--- a/actions/newnotice.php
+++ b/actions/newnotice.php
@@ -141,9 +141,9 @@ class NewnoticeAction extends Action
if ($cmd) {
if ($this->boolean('ajax')) {
- $cmd->execute(new AjaxWebChannel());
+ $cmd->execute(new AjaxWebChannel($this));
} else {
- $cmd->execute(new WebChannel());
+ $cmd->execute(new WebChannel($this));
}
return;
}