Do not check php-geos requirement in the update phase #526

This commit is contained in:
Paul Weidner 2022-04-21 11:13:42 -07:00 committed by Michael Stenta
parent a7c92b70b3
commit 4949c34426
2 changed files with 10 additions and 0 deletions

View File

@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [Issue #3275161: Allow IMG tags in default text format](https://www.drupal.org/project/farm/issues/3275161)
### Fixed
- [Do not check php-geos requirement in the update phase #526](https://github.com/farmOS/farmOS/pull/526)
### Security
- Update Drupal core to 9.3.12 for [SA-CORE-2022-008](https://www.drupal.org/sa-core-2022-008) and

View File

@ -11,6 +11,12 @@
function farm_geo_requirements($phase) {
$requirements = [];
// Do not check requirements in the update phase.
// The REQUIREMENT_WARNING severity prevents updates from being run.
if ($phase == 'update') {
return $requirements;
}
// Check for php-geos extension.
if (geoPHP::geosInstalled()) {
$severity = REQUIREMENT_OK;