Commit 74744dcd authored by Murilo Henrique Pucci's avatar Murilo Henrique Pucci Committed by Jakob P
Browse files

Issue #3285589 by murilohp, Drews_man: PHP8.1 - Promo DSM message is being...

Issue #3285589 by murilohp, Drews_man: PHP8.1 - Promo DSM message is being displayed on acquia_connector pages and preg_match deprecation error
parent 387da22b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -317,7 +317,7 @@ function acquia_connector_show_free_tier_promo() {

  // Check that we're not on one of our own config pages, all of which are
  // prefixed with admin/config/system/acquia-connector.
  $current_path = \Drupal::Request()->attributes->get('_system_path');
  $current_path = ltrim(\Drupal::service('path.current')->getPath(\Drupal::request()), '/');
  if (\Drupal::service('path.matcher')->matchPath($current_path, 'admin/config/system/acquia-connector/*')) {
    return;
  }