summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2012-12-16 22:09:25 +0100
committerBenny Baumann <BenBE@geshi.org>2013-05-01 15:50:26 +0200
commita6ae837dfcec95fa6eea25c64f3101ed25d0472a (patch)
treeb2398dfaf2c6b1d4a7406ed85d78fa547fd9dca8
parent6ff07a756e49a114ad44bb129a5c64f4dbbb4536 (diff)
downloadcacert-devel-a6ae837dfcec95fa6eea25c64f3101ed25d0472a.tar.gz
cacert-devel-a6ae837dfcec95fa6eea25c64f3101ed25d0472a.tar.xz
cacert-devel-a6ae837dfcec95fa6eea25c64f3101ed25d0472a.zip
bug 28: added language switch to scripts/cron/warning.php
-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 5cf7c31..ad3383b 100755
--- a/scripts/cron/warning.php
+++ b/scripts/cron/warning.php
@@ -18,6 +18,7 @@
*/
require_once(dirname(__FILE__).'/../../includes/mysql.php');
+ require_once(dirname(__FILE__).'/../../includes/lib/l10n.php');
$days = array("1" => "3", "15" => "2", "30" => "1", "45" => "0");
@@ -34,6 +35,7 @@
$res = mysql_query($query);
while($row = mysql_fetch_assoc($res))
{
+ L10n::set_translation(get_recipient_language(intval(.$row['id')));
if($row['subject'] == "")
{
$row['crt_name'] = str_replace("../", "www/", $row['crt_name']);
@@ -101,6 +103,7 @@ echo $row['fname']." ".$row['lname']." <".$row['email']."> (memid: ".$row['memid
$res = mysql_query($query);
while($row = mysql_fetch_assoc($res))
{
+ L10n::set_translation(get_recipient_language(intval(.$row['memid')));
if($row['subject'] == "")
$row['subject'] = $row['CN'];