X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FUpdater%2FModule.php;h=4829c5380754e4082001742fe4d903fa7b3581cc;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=0a244b46bc15ab4fa8ccb2ce608ba10e9cd96413;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/lib/Drupal/Core/Updater/Module.php b/web/core/lib/Drupal/Core/Updater/Module.php index 0a244b46b..4829c5380 100644 --- a/web/core/lib/Drupal/Core/Updater/Module.php +++ b/web/core/lib/Drupal/Core/Updater/Module.php @@ -49,8 +49,9 @@ class Module extends Updater implements UpdaterInterface { public function isInstalled() { // Check if the module exists in the file system, regardless of whether it // is enabled or not. - $modules = \Drupal::state()->get('system.module.files', []); - return isset($modules[$this->name]); + /** @var \Drupal\Core\Extension\ExtensionList $module_extension_list */ + $module_extension_list = \Drupal::service('extension.list.module'); + return $module_extension_list->exists($this->name); } /** @@ -104,7 +105,7 @@ class Module extends Updater implements UpdaterInterface { * {@inheritdoc} */ public function postInstallTasks() { - // Since this is being called outsite of the primary front controller, + // Since this is being called outside of the primary front controller, // the base_url needs to be set explicitly to ensure that links are // relative to the site root. // @todo Simplify with https://www.drupal.org/node/2548095