summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2014-11-23 15:21:16 +0100
committerBenny Baumann <BenBE@geshi.org>2014-11-23 15:21:16 +0100
commit1cc5257aba1e6ae883caf464eaadf25783d2279d (patch)
treec9274d32c2cdee6af9b7fafab759c3862f3f693f /scripts
parent0bae20ba9f726c964eaee62a3b41c2da65bb8f0b (diff)
parent0950de5691c8f3e6b3115413e54d4932a2c923c7 (diff)
downloadcacert-devel-1cc5257aba1e6ae883caf464eaadf25783d2279d.tar.gz
cacert-devel-1cc5257aba1e6ae883caf464eaadf25783d2279d.tar.xz
cacert-devel-1cc5257aba1e6ae883caf464eaadf25783d2279d.zip
Merge branch 'bug-28' into release
Conflicts: includes/account.php scripts/cron/warning.php www/disputes.php www/wot.php
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/cron/warning.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/cron/warning.php b/scripts/cron/warning.php
index db5da4f..59b1aa2 100755
--- a/scripts/cron/warning.php
+++ b/scripts/cron/warning.php
@@ -19,6 +19,7 @@
require_once(dirname(__FILE__).'/../../includes/mysql.php');
require_once(dirname(__FILE__).'/../../includes/lib/general.php');
+ require_once(dirname(__FILE__).'/../../includes/lib/l10n.php');
$days = array("1" => "3", "15" => "2", "30" => "1", "45" => "0");
@@ -35,6 +36,7 @@
$res = mysql_query($query);
while($row = mysql_fetch_assoc($res))
{
+ L10n::set_recipient_language(intval($row['id']));
if($row['subject'] == "")
{
$row['crt_name'] = str_replace("../", "www/", $row['crt_name']);
@@ -108,6 +110,7 @@ echo $row['fname']." ".$row['lname']." <".$row['email']."> (memid: ".$row['memid
$res = mysql_query($query);
while($row = mysql_fetch_assoc($res))
{
+ L10n::set_recipient_language(intval($row['memid']));
if($row['subject'] == "")
$row['subject'] = $row['CN'];