From: Coleman Watts Date: Mon, 30 Nov 2015 03:15:35 +0000 (-0500) Subject: Convert to old array syntax for the sake of jenkins X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9b058c76cf9d54838ed5f61924d6b3f45c677e90;p=civicrm-core.git Convert to old array syntax for the sake of jenkins --- diff --git a/CRM/Utils/System/Drupal8.php b/CRM/Utils/System/Drupal8.php index 32a5bc4884..d626e9cb3d 100644 --- a/CRM/Utils/System/Drupal8.php +++ b/CRM/Utils/System/Drupal8.php @@ -337,11 +337,11 @@ class CRM_Utils_System_Drupal8 extends CRM_Utils_System_DrupalBase { // Not all links that CiviCRM generates are Drupal routes, so we use the weaker ::fromUri method. try { - $url = \Drupal\Core\Url::fromUri("base:{$url['path']}", [ + $url = \Drupal\Core\Url::fromUri("base:{$url['path']}", array( 'query' => $url['query'], 'fragment' => $fragment, 'absolute' => $absolute, - ])->toString(); + ))->toString(); } catch (Exception $e) { // @Todo: log to watchdog