Skip to content

Commit 472d31e

Browse files
Simplify the maintenance file call (laravel#5752)
* Simplify the maintenance file call * Update index.php Co-authored-by: Taylor Otwell <[email protected]>
1 parent e999e1d commit 472d31e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/index.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
|
1717
*/
1818

19-
if (file_exists(__DIR__.'/../storage/framework/maintenance.php')) {
20-
require __DIR__.'/../storage/framework/maintenance.php';
19+
if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) {
20+
require $maintenance;
2121
}
2222

2323
/*

0 commit comments

Comments
 (0)