Skip to content

Commit

Permalink
Update src/Foundation/Http/Middleware/CheckForMaintenanceMode.php
Browse files Browse the repository at this point in the history
  • Loading branch information
bennothommo authored Nov 1, 2023
1 parent 1b9532b commit 251c112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Foundation/Http/Middleware/CheckForMaintenanceMode.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function handle($request, Closure $next)
} catch (\Symfony\Component\HttpKernel\Exception\HttpException $ex) {
if ($ex->getStatusCode() === 503) {
// Smoothly handle AJAX requests
if (request()->ajax()) {
if (request()->ajax()) {
return Response::make(Lang::get('system::lang.page.maintenance.help') . "\r\n" . $ex->getMessage(), 503);
}

Expand Down

0 comments on commit 251c112

Please sign in to comment.