diff options
author | Brion Vibber <brion@pobox.com> | 2010-11-02 13:12:58 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-11-02 13:12:58 -0700 |
commit | 86201761eadef3b124ee13e6ba2f9e661e697a5a (patch) | |
tree | f2db4817d163b2fa7c8edb5045bc720f754d57d9 /lib/action.php | |
parent | 5a9bb0adc4555bf67bb668edb587d4440cca61e5 (diff) |
Use SN.msg() and onEndScriptMessages() to export localized UI messages from Realtime plugin and its descendents.
Diffstat (limited to 'lib/action.php')
-rw-r--r-- | lib/action.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/action.php b/lib/action.php index becd734b1..766cfca26 100644 --- a/lib/action.php +++ b/lib/action.php @@ -311,10 +311,10 @@ class Action extends HTMLOutputter // lawsuit $messages = array_merge($messages, $this->getScriptMessages()); } + Event::handle('EndScriptMessages', array($this, &$messages)); if ($messages) { $this->inlineScript('SN.messages=' . json_encode($messages)); } - Event::handle('EndScriptMessages', array($this, &$messages)); return $messages; } |