dev/drupal#75 Drupal8: fix call to languageNegotiationURL() when called from cv
authorMathieu Lutfy <mathieu@symbiotic.coop>
Wed, 10 Jul 2019 00:07:16 +0000 (20:07 -0400)
committereileen <emcnaughton@wikimedia.org>
Wed, 10 Jul 2019 05:10:14 +0000 (17:10 +1200)
CRM/Utils/System/Drupal8.php

index 76b95801252fb80aef0a92063479aced69bcd87a..a8b8a0e94734b45cd36817f4377e1403c598c1f7 100644 (file)
@@ -709,7 +709,7 @@ class CRM_Utils_System_Drupal8 extends CRM_Utils_System_DrupalBase {
 
     // Drupal might not be bootstrapped if being called by the REST API.
     if (!class_exists('Drupal') || !\Drupal::hasContainer()) {
-      return NULL;
+      return $url;
     }
 
     $language = $this->getCurrentLanguage();