X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Fsystem%2Fsrc%2FController%2FSystemController.php;fp=web%2Fcore%2Fmodules%2Fsystem%2Fsrc%2FController%2FSystemController.php;h=106f4e291547f4197b50864ac814803441894756;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=4af1dcb856f4ac03d7f91f823f366f50684aa78f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;p=yaffs-website diff --git a/web/core/modules/system/src/Controller/SystemController.php b/web/core/modules/system/src/Controller/SystemController.php index 4af1dcb85..106f4e291 100644 --- a/web/core/modules/system/src/Controller/SystemController.php +++ b/web/core/modules/system/src/Controller/SystemController.php @@ -100,7 +100,7 @@ class SystemController extends ControllerBase { public function overview($link_id) { // Check for status report errors. if ($this->systemManager->checkRequirements() && $this->currentUser()->hasPermission('administer site configuration')) { - drupal_set_message($this->t('One or more problems were detected with your Drupal installation. Check the status report for more information.', [':status' => $this->url('system.status')]), 'error'); + $this->messenger()->addError($this->t('One or more problems were detected with your Drupal installation. Check the status report for more information.', [':status' => $this->url('system.status')])); } // Load all menu links below it. $parameters = new MenuTreeParameters(); @@ -187,7 +187,7 @@ class SystemController extends ControllerBase { uasort($themes, 'system_sort_modules_by_info_name'); $theme_default = $config->get('default'); - $theme_groups = ['installed' => [], 'uninstalled' => []]; + $theme_groups = ['installed' => [], 'uninstalled' => []]; $admin_theme = $config->get('admin'); $admin_theme_options = [];