Skip to content
Snippets Groups Projects
Commit 92e2dafe authored by catch's avatar catch
Browse files

Issue #3205344 by alexpott: Calling system_requirements() can be expensive -...

Issue #3205344 by alexpott: Calling system_requirements() can be expensive - do the cheap check first
parent 6ee786e9
No related branches found
No related tags found
6 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!1012Issue #3226887: Hreflang on non-canonical content pages,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10,!596Issue #3046532: deleting an entity reference field, used in a contextual view, makes the whole site unrecoverable,!496Issue #2463967: Use .user.ini file for PHP settings,!16Draft: Resolve #2081585 "History storage"
...@@ -118,7 +118,7 @@ public static function create(ContainerInterface $container) { ...@@ -118,7 +118,7 @@ public static function create(ContainerInterface $container) {
*/ */
public function overview($link_id) { public function overview($link_id) {
// Check for status report errors. // Check for status report errors.
if ($this->systemManager->checkRequirements() && $this->currentUser()->hasPermission('administer site configuration')) { if ($this->currentUser()->hasPermission('administer site configuration') && $this->systemManager->checkRequirements()) {
$this->messenger()->addError($this->t('One or more problems were detected with your Drupal installation. Check the <a href=":status">status report</a> for more information.', [':status' => Url::fromRoute('system.status')->toString()])); $this->messenger()->addError($this->t('One or more problems were detected with your Drupal installation. Check the <a href=":status">status report</a> for more information.', [':status' => Url::fromRoute('system.status')->toString()]));
} }
// Load all menu links below it. // Load all menu links below it.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment