From d5392119959d3dcd7c96948d77c50f656d2d4caa Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Tue, 6 Jun 2017 23:02:15 +0530 Subject: [PATCH] CRM-19226: Fix loginUrl token in drupal for CiviCRM 4.6.x ---------------------------------------- * CRM-19226: $loginUrl token not populating in Drupal 7 https://issues.civicrm.org/jira/browse/CRM-19226 --- CRM/Utils/System/Drupal.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Utils/System/Drupal.php b/CRM/Utils/System/Drupal.php index df65787237..32cb1f79c5 100644 --- a/CRM/Utils/System/Drupal.php +++ b/CRM/Utils/System/Drupal.php @@ -166,8 +166,8 @@ class CRM_Utils_System_Drupal extends CRM_Utils_System_DrupalBase { * @inheritDoc */ public function getLoginURL($destination = '') { - $query = $destination ? array('destination' => $destination) : array(); - return url('user', array('query' => $query), TRUE); + $query = $destination ? array('destination' => $destination) : NULL; + return CRM_Utils_System::url('user', $query, TRUE); } /** -- 2.25.1