From: rollox Date: Wed, 30 Mar 2016 23:04:19 +0000 (+0100) Subject: CRM-18317 - Links to Drupal system broken if hook altered by a module X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d8a826dc8bdee44c2dc633170c1274979ebacf81;p=civicrm-core.git CRM-18317 - Links to Drupal system broken if hook altered by a module Let Drupal (6 or 7) handle the generation of system links to 'admin/.../permissions' so that the urls can be hook altered if necessary by modules like Rename Admin Paths: https://www.drupal.org/project/rename_admin_paths --- diff --git a/CRM/Admin/Page/Access.php b/CRM/Admin/Page/Access.php index e7fa0e7bf0..588095af65 100644 --- a/CRM/Admin/Page/Access.php +++ b/CRM/Admin/Page/Access.php @@ -45,11 +45,11 @@ class CRM_Admin_Page_Access extends CRM_Core_Page { switch ($config->userFramework) { case 'Drupal': - $this->assign('ufAccessURL', CRM_Utils_System::url('admin/people/permissions')); + $this->assign('ufAccessURL', url('admin/people/permissions')); break; case 'Drupal6': - $this->assign('ufAccessURL', CRM_Utils_System::url('admin/user/permissions')); + $this->assign('ufAccessURL', url('admin/user/permissions')); break; case 'Joomla':