From be028c5e3ee9407d46768f0102a1782e5eb2ee1d Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Thu, 1 Dec 2016 18:31:54 +0530 Subject: [PATCH] CRM-19226: Fix loginUrl token in drupal --- CRM/Utils/System/Drupal.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CRM/Utils/System/Drupal.php b/CRM/Utils/System/Drupal.php index 8beb99405c..b315c8868f 100644 --- a/CRM/Utils/System/Drupal.php +++ b/CRM/Utils/System/Drupal.php @@ -162,8 +162,9 @@ 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; + $loginURL = CRM_Utils_System::url('user', $query, TRUE); + return $loginURL; } /** -- 2.25.1