Skip to content

Commit

Permalink
Issue #3117396 by penyaskito, Berdir: Pathauto requirements confusing…
Browse files Browse the repository at this point in the history
… message when running -dev
  • Loading branch information
alexpott committed Jul 23, 2020
1 parent 2820ca6 commit 652ec13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/system/system.install
Original file line number Diff line number Diff line change
Expand Up @@ -1306,7 +1306,7 @@ function system_requirements($phase) {
if ($phase === 'install' || $phase === 'update') {
if (\Drupal::moduleHandler()->moduleExists('pathauto')) {
$info = \Drupal::service('extension.list.module')->getExtensionInfo('pathauto');
if (version_compare($info['version'], '8.x-1.5') <= 0) {
if ($info['version'] && version_compare($info['version'], '8.x-1.5') <= 0) {
$requirements['pathauto_module_incompatibility'] = [
'title' => t('Pathauto'),
'description' => t('The Pathauto module is not compatible with the current version of Drupal core. Update the <a href=":url">Pathauto</a> module to 8.x-1.6 or later.', [
Expand Down

0 comments on commit 652ec13

Please sign in to comment.