diff options
author | Brion Vibber <brion@pobox.com> | 2010-04-20 12:06:54 +0200 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-04-20 13:49:29 +0200 |
commit | c48caa85e12063c2df9913957dbd11af6b5e3ea6 (patch) | |
tree | a17c3f1cba59c49de4f1810cf2ce26ccae6b0738 /scripts/commandline.inc | |
parent | 0e1be7e01b00a9ad5201845b96f9f5634ab10236 (diff) |
Fix email notifications for @-replies that come via OStatus.
* Moved notification sending from Notice::saveReplies to distrib queue handler, so it'll pull from the reply set we've saved regardless of how we got it.
* Set up gettext infrastructure for command-line scripts; gets localization mail notifications etc working from background queues.
* Adjusted locale switching: common_switch_locale() works at runtime for bg scripts, forces a message catalog update
Diffstat (limited to 'scripts/commandline.inc')
-rw-r--r-- | scripts/commandline.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/commandline.inc b/scripts/commandline.inc index 9029bb19d..a475e11d0 100644 --- a/scripts/commandline.inc +++ b/scripts/commandline.inc @@ -123,6 +123,10 @@ require_once INSTALLDIR . '/lib/common.php'; set_error_handler('common_error_handler'); +// Set up the language infrastructure so we can localize anything that +// needs to be sent out to users, such as mail notifications. +common_init_language(); + function _make_matches($opt, $alt) { $matches = array(); |