summaryrefslogtreecommitdiff
path: root/scripts/removedead.php
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/removedead.php')
-rwxr-xr-xscripts/removedead.php5
1 files changed, 2 insertions, 3 deletions
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";