diff --git a/changelog/57_UNRELEASED_2020-xx-xx.md b/changelog/57_UNRELEASED_2020-xx-xx.md index a1e9d657..b8f0e1ed 100644 --- a/changelog/57_UNRELEASED_2020-xx-xx.md +++ b/changelog/57_UNRELEASED_2020-xx-xx.md @@ -2,4 +2,5 @@ - Fixed a PHP notice on the recipes page when there are no recipes (thanks @mrunkel) ### General & other improvements +- Prerequisites (PHP extensions, critical files/folders) will now be checked and properly reported if there are problems (thanks @Forceu) - Improved the the overview pages on mobile devices (main column was hidden) (thanks @Mik-) diff --git a/helpers/PrerequisiteChecker.php b/helpers/PrerequisiteChecker.php new file mode 100644 index 00000000..96e16c3e --- /dev/null +++ b/helpers/PrerequisiteChecker.php @@ -0,0 +1,62 @@ +checkRequirements(); +} +catch (ERequirementNotMet $ex) +{ + die('Unable to run grocy: ' . $ex->getMessage()); +} + require_once __DIR__ . '/../app.php';