mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Check PHP version first (#10473)
Check PHP version before anything so we can inform the user instead of them getting generic error 500.
This commit is contained in:
@@ -14,10 +14,9 @@ define('LARAVEL_START', microtime(true));
|
||||
|
|
||||
*/
|
||||
|
||||
@require_once __DIR__ . '/../app/Checks.php';
|
||||
\App\Checks::preAutoload();
|
||||
|
||||
@include __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
if (!class_exists(\App\Checks::class)) {
|
||||
require __DIR__ . '/../app/Checks.php';
|
||||
}
|
||||
|
||||
\App\Checks::postAutoload();
|
||||
|
Reference in New Issue
Block a user