From af72161ec3550d53b0ae022a61907ca214c077b2 Mon Sep 17 00:00:00 2001 From: spaghetti Date: Sat, 8 Jul 2017 12:15:31 -0400 Subject: [PATCH] Add IP expunge requests --- design/privateheader.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/design/privateheader.php b/design/privateheader.php index f2b437f..1b8985e 100755 --- a/design/privateheader.php +++ b/design/privateheader.php @@ -502,14 +502,14 @@ if (check_perms('admin_reports')) { } if (check_perms('users_mod')) { - $NumEmailDeleteRequests = G::$Cache->get_value('num_email_delete_requests'); - if ($NumEmailDeleteRequests === false) { - G::$DB->query("SELECT COUNT(*) FROM email_delete_requests"); - list($NumEmailDeleteRequests) = G::$DB->next_record(); - G::$Cache->cache_value('num_email_delete_requests', $NumEmailDeleteRequests); + $NumDeleteRequests = G::$Cache->get_value('num_deletion_requests'); + if ($NumDeleteRequests === false) { + G::$DB->query("SELECT COUNT(*) FROM deletion_requests"); + list($NumDeleteRequests) = G::$DB->next_record(); + G::$Cache->cache_value('num_deletion_requests', $NumDeleteRequests); } - if ($NumEmailDeleteRequests > 0) { - $ModBar[] = '' . $NumEmailDeleteRequests . " Email deletion request(s)"; + if ($NumDeleteRequests > 0) { + $ModBar[] = '' . $NumDeleteRequests . " Expunge request".($NumDeleteRequests > 1 ? 's' : '').""; } }