From 61468a7880d3cde7fffec8feaf076d5bae351d83 Mon Sep 17 00:00:00 2001 From: Brian Foley Date: Sat, 30 Mar 2024 00:16:31 -0400 Subject: [PATCH] Use accessor instead of removed global array. (#1169) Squash into 'Add access change emails to pgdp-production' eventually --- pinc/access_change_emails.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pinc/access_change_emails.inc b/pinc/access_change_emails.inc index b9bbc2dd62..ea5db86827 100644 --- a/pinc/access_change_emails.inc +++ b/pinc/access_change_emails.inc @@ -66,9 +66,9 @@ function pp_access_change_email($user, $access_change) function p2_access_change_email($user, $access_change) { - global $site_name, $site_abbreviation, $Round_for_round_id_; + global $site_name, $site_abbreviation; - $daily_limit = $Round_for_round_id_['P2']->daily_page_limit; + $daily_limit = get_Round_for_round_id('P2')->daily_page_limit; // only send emails on grant if ($access_change != "grant") { @@ -161,9 +161,9 @@ function p2_access_change_email($user, $access_change) function f1_access_change_email($user, $access_change) { - global $site_name, $site_abbreviation, $Round_for_round_id_; + global $site_name, $site_abbreviation; - $daily_limit = $Round_for_round_id_['F1']->daily_page_limit; + $daily_limit = get_Round_for_round_id('F1')->daily_page_limit; // only send emails on grant if ($access_change != "grant") {