Skip to content

Commit

Permalink
Do not check php-geos requirement in the update phase.
Browse files Browse the repository at this point in the history
  • Loading branch information
paul121 committed Apr 21, 2022
1 parent a7c92b7 commit 63bbaa4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/core/geo/farm_geo.install
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 63bbaa4

Please sign in to comment.