Skip to content

Commit

Permalink
Merge pull request #14776 from eileenmcnaughton/bgm515
Browse files Browse the repository at this point in the history
dev/drupal#75 Drupal8: fix call to languageNegotiationURL() when called from cv
  • Loading branch information
mlutfy authored Jul 10, 2019
2 parents d8a2070 + 1593366 commit f7bdfd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Utils/System/Drupal8.php
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ public function languageNegotiationURL($url, $addLanguagePart = TRUE, $removeLan

// 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();
Expand Down

0 comments on commit f7bdfd9

Please sign in to comment.