From a6ae837dfcec95fa6eea25c64f3101ed25d0472a Mon Sep 17 00:00:00 2001 From: INOPIAE Date: Sun, 16 Dec 2012 22:09:25 +0100 Subject: bug 28: added language switch to scripts/cron/warning.php --- scripts/cron/warning.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/cron/warning.php') 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']; -- cgit v1.2.1 From 06b04cd9e702279c371fd1d3f95fa22e08ffa49e Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Wed, 8 May 2013 00:02:29 +0200 Subject: bug 28: add changes for l10n class --- scripts/cron/warning.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/cron/warning.php') diff --git a/scripts/cron/warning.php b/scripts/cron/warning.php index ad3383b..bbf79ac 100755 --- a/scripts/cron/warning.php +++ b/scripts/cron/warning.php @@ -35,7 +35,7 @@ $res = mysql_query($query); while($row = mysql_fetch_assoc($res)) { - L10n::set_translation(get_recipient_language(intval(.$row['id'))); + L10n::set__recipient_language(intval($row['id'])); if($row['subject'] == "") { $row['crt_name'] = str_replace("../", "www/", $row['crt_name']); @@ -103,7 +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'))); + L10n::set__recipient_language(intval($row['memid'])); if($row['subject'] == "") $row['subject'] = $row['CN']; -- cgit v1.2.1 From 97dea8922675c16548252d63e91d7ad31f5ccad1 Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Wed, 8 May 2013 00:16:22 +0200 Subject: bug 28: Fix the function name --- scripts/cron/warning.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/cron/warning.php') diff --git a/scripts/cron/warning.php b/scripts/cron/warning.php index bbf79ac..d625d53 100755 --- a/scripts/cron/warning.php +++ b/scripts/cron/warning.php @@ -35,7 +35,7 @@ $res = mysql_query($query); while($row = mysql_fetch_assoc($res)) { - L10n::set__recipient_language(intval($row['id'])); + L10n::set_recipient_language(intval($row['id'])); if($row['subject'] == "") { $row['crt_name'] = str_replace("../", "www/", $row['crt_name']); @@ -103,7 +103,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'])); + L10n::set_recipient_language(intval($row['memid'])); if($row['subject'] == "") $row['subject'] = $row['CN']; -- cgit v1.2.1