diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-02-04 07:59:30 -0500 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-02-04 07:59:30 -0500 |
commit | 2d063650effb22c90936a4588f44946c69e1d9a1 (patch) | |
tree | f113d39dc54a58eab425e01e29edb4ee6b249ad6 /actions/newnotice.php | |
parent | 15b96f78ab9c294e6e20ff2411662793dae1e2d9 (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.php | 4 |
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; } |