From aaba8ae5c99eeb52989a7569ba364cb028e4ba51 Mon Sep 17 00:00:00 2001 From: rollox Date: Wed, 30 Mar 2016 23:19:46 +0100 Subject: [PATCH] CRM-18317 - Links to Drupal system broken if hook altered by a module Let Drupal render the system url for 'user/password' instead of Civi, so that any Drupal hooks that alter this path have a chance to do so. --- CRM/Utils/System/Drupal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Utils/System/Drupal.php b/CRM/Utils/System/Drupal.php index 008b801cba..3b214841b9 100644 --- a/CRM/Utils/System/Drupal.php +++ b/CRM/Utils/System/Drupal.php @@ -149,7 +149,7 @@ class CRM_Utils_System_Drupal extends CRM_Utils_System_DrupalBase { array(':mail' => $params['mail']) )->fetchField(); if ((bool) $uid) { - $resetUrl = $config->userFrameworkBaseURL . 'user/password'; + $resetUrl = url('user/password'); $errors[$emailName] = ts('The email address %1 is already registered. Have you forgotten your password?', array(1 => $params['mail'], 2 => $resetUrl) ); -- 2.25.1