diff options
author | matthew <matthew> | 2009-07-10 15:17:28 +0000 |
---|---|---|
committer | matthew <matthew> | 2009-07-10 15:17:28 +0000 |
commit | 6ce6b1bf890f03f5ea3cd69c298a4d15d714d739 (patch) | |
tree | c4c3b8d62c9c822a9a53a1441efb79abe06d5faf /bin/send-alerts | |
parent | d8965858c21a47753ba1ba9292f00d24df22a650 (diff) |
Store site lang for reports, updates, alerts, so that future emails on them
are in that language.
Diffstat (limited to 'bin/send-alerts')
-rwxr-xr-x | bin/send-alerts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/send-alerts b/bin/send-alerts index ef272ae6f..f282efaaf 100755 --- a/bin/send-alerts +++ b/bin/send-alerts @@ -6,7 +6,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: matthew@mysociety.org. WWW: http://www.mysociety.org # -# $Id: send-alerts,v 1.2 2007-06-15 14:57:51 matthew Exp $ +# $Id: send-alerts,v 1.3 2009-07-10 15:17:28 matthew Exp $ use strict; require 5.8.0; @@ -15,6 +15,7 @@ require 5.8.0; use FindBin; use lib "$FindBin::Bin/../perllib"; use lib "$FindBin::Bin/../../perllib"; +use CronFns; use mySociety::Config; use mySociety::DBHandle qw(dbh); @@ -31,5 +32,8 @@ BEGIN { ); } +my $site = CronFns::site(mySociey::Config::get('BASE_URL')); +CronFns::language($site); + mySociety::Alert::email_alerts(); |