Skip to content

Commit

Permalink
ENH Stop using Controller::has_curr()
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Feb 13, 2025
1 parent 0dcb286 commit ca140d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Jobs/GenerateCSVJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ protected function initRequest()
Injector::inst()->registerService($request);
}

if (!Controller::has_curr()) {
if (!Controller::curr()) {
$controller = new Controller();
$controller->setRequest(Injector::inst()->get(HTTPRequest::class));
$controller->pushCurrent();
Expand Down

0 comments on commit ca140d2

Please sign in to comment.