From f6129590b312f0b6b680f6085ff15f1d41c70691 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20T=C3=A4nzer?= Date: Thu, 26 Jan 2012 20:46:40 +0100 Subject: Source code taken from cacert-20120125.tar.bz2 --- scripts/removedead.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'scripts/removedead.php') diff --git a/scripts/removedead.php b/scripts/removedead.php index 7e47c7f..23c4cd9 100755 --- a/scripts/removedead.php +++ b/scripts/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"; -- cgit v1.2.1