| @@ -20,9 +20,13 @@ | ||
| 20 | 20 | } |
| 21 | 21 | $already_registered = true; |
| 22 | 22 | |
| 23 | 23 | // Load build constants |
| 24 | - $build_constants = require __DIR__ . '/constants.php'; | |
| 24 | + $constants_file = __DIR__ . '/constants.php'; | |
| 25 | + if ( ! file_exists( $constants_file ) ) { | |
| 26 | + return; | |
| 27 | + } | |
| 28 | + $build_constants = require $constants_file; | |
| 25 | 29 | $modules_dir = __DIR__ . '/modules'; |
| 26 | 30 | $modules_file = $modules_dir . '/registry.php'; |
| 27 | 31 | |
| 28 | 32 | if ( ! file_exists( $modules_file ) ) { |