summaryrefslogtreecommitdiff
path: root/scripts/cron
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2012-01-31 00:08:44 +0100
committerMichael Tänzer <neo@nhng.de>2012-01-31 00:08:44 +0100
commitccc8fb0f47871f2b8248c108d8e73e0da93cd8dc (patch)
treeb5187bb6af3570cdd4d9ef066d32269647dd5226 /scripts/cron
parentd6217ca64a4dd6aba971a8ac14332c64fbb20837 (diff)
parent8a7611eb5e18a678f81721d6602b668c2e7bea52 (diff)
downloadcacert-devel-ccc8fb0f47871f2b8248c108d8e73e0da93cd8dc.tar.gz
cacert-devel-ccc8fb0f47871f2b8248c108d8e73e0da93cd8dc.tar.xz
cacert-devel-ccc8fb0f47871f2b8248c108d8e73e0da93cd8dc.zip
Merge branch 'release' into bug-1003
Diffstat (limited to 'scripts/cron')
-rwxr-xr-xscripts/cron/removedead.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/cron/removedead.php b/scripts/cron/removedead.php
index 7e47c7f..23c4cd9 100755
--- a/scripts/cron/removedead.php
+++ b/scripts/cron/removedead.php
@@ -18,6 +18,7 @@
*/
include_once("/home/cacert/www/includes/mysql.php");
+ require_once('/home/cacert/www/includes/lib/l10n.php');
$query = "select * from `users` where `users`.`verified`=0 and
(UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(`users`.`created`)) >= 172800";
@@ -67,9 +68,7 @@
if($data['language'] != "")
{
- $userlang = $data['language'];
- putenv("LANG=".$userlang);
- setlocale(LC_ALL, $userlang);
+ L10n::set_translation($data['language']);
}
$body = _("You are receiving this email because you had a temporary increase to 200 points. This has since expired and you have been reduced to 150 points.")."\n\n";