Skip to content

Commit 61d5bb9

Browse files
committed
Update RegisterController for PeriodicEvents API change
This was missed in #532 ("Introducing PeriodicEvents instead of EventTriggers"). Attempting to open the "Application for college students" tab therefore resulted in a 500 error code because of the call to the undefined `getApplicationDeadline` method.
1 parent c9549e1 commit 61d5bb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/Auth/RegisterController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function showRegistrationForm()
5050
{
5151
return view('auth.register', [
5252
'user_type' => Role::COLLEGIST,
53-
'application_open' => ApplicationController::getApplicationDeadline() > now(),
53+
'application_open' => app(ApplicationController::class)->isActive(),
5454
// 'countries' => require base_path('countries.php'),
5555
]);
5656
}

0 commit comments

Comments
 (0)