Skip to content

Commit

Permalink
Merge pull request #9479 from jitendrapurohit/CRM-19226
Browse files Browse the repository at this point in the history
CRM-19226: Fix loginUrl token in drupal
  • Loading branch information
monishdeb authored Dec 12, 2016
2 parents 1a5f154 + cd2e715 commit f816735
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRM/Utils/System/Drupal.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ public static function checkUserNameEmailExists(&$params, &$errors, $emailName =
* @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);
}

/**
Expand Down

0 comments on commit f816735

Please sign in to comment.