Skip to content

Commit

Permalink
Use accessor instead of removed global array. (#1169)
Browse files Browse the repository at this point in the history
Squash into 'Add access change emails to pgdp-production' eventually
  • Loading branch information
bpfoley authored and srjfoo committed Mar 30, 2024
1 parent ec9497e commit 61468a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pinc/access_change_emails.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down Expand Up @@ -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") {
Expand Down

0 comments on commit 61468a7

Please sign in to comment.