mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 09:05:55 +00:00
Merge pull request #302 from creative-commoners/pulls/2.0/fix-db-not-ready-delegation
FIX Ensure delegated requests are continued when DB builds fail in middleware
This commit is contained in:
commit
a7fee1729e
@ -43,7 +43,8 @@ class InitStateMiddleware implements HTTPMiddleware
|
|||||||
|
|
||||||
return $delegate($request);
|
return $delegate($request);
|
||||||
} catch (DatabaseException $ex) {
|
} catch (DatabaseException $ex) {
|
||||||
// No-op, database is not ready
|
// Database is not ready
|
||||||
|
return $delegate($request);
|
||||||
} finally {
|
} finally {
|
||||||
// Persist to the session if using the CMS
|
// Persist to the session if using the CMS
|
||||||
if ($state->getUseSessions()) {
|
if ($state->getUseSessions()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user