Commit 54c59cfd authored by Hugh Davenport's avatar Hugh Davenport
Browse files

Add param to URL for pending registrations



Add a param so that the URL goes directly to the institution
with pending registrations

Change-Id: I11959f3aaa16e2757ee9a4f367edcc4e8135e306
Signed-off-by: default avatarHugh Davenport <hugh@catalyst.net.nz>
parent 781e3f8e
......@@ -80,7 +80,7 @@ if (!empty($_SESSION['emailconfirmed'])) {
if ($registration = get_record_select('usr_registration', '"key" = ? AND "pending" = ?', array($key, 1))) {
$fullname = sprintf("%s %s", trim($registration->firstname), trim($registration->lastname));
$institution = new Institution($registration->institution);
$pendingregistrationslink = sprintf("%sadmin/users/pendingregistrations.php", get_config('wwwroot'));
$pendingregistrationslink = sprintf("%sadmin/users/pendingregistrations.php?institution=%s", get_config('wwwroot'), $registration->institution);
// list of admins for this institution
if (count($institution->admins()) > 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment