Skip to content
Snippets Groups Projects
Commit cf38ef17 authored by Solomon Gifford's avatar Solomon Gifford Committed by Raphael Apard
Browse files

Issue #1703242 by solomongifford: Prevent the second call by PURL module.

parent 85167c14
Branches
Tags 7.x-2.0-beta5
No related merge requests found
...@@ -83,6 +83,11 @@ function rename_admin_paths_url_outbound_alter(&$path, &$options, $original_path ...@@ -83,6 +83,11 @@ function rename_admin_paths_url_outbound_alter(&$path, &$options, $original_path
*/ */
function rename_admin_paths_url_inbound_alter(&$path, $original_path, $path_language) { function rename_admin_paths_url_inbound_alter(&$path, $original_path, $path_language) {
// Prevent the second call by PURL module (@see http://drupal.org/node/1703242)
if (module_exists('purl') && purl_inited()) {
return;
}
// Admin path // Admin path
if (variable_get('rename_admin_path', NULL)) { if (variable_get('rename_admin_path', NULL)) {
$rename_admin_path_value = variable_get('rename_admin_path_value', 'backend'); $rename_admin_path_value = variable_get('rename_admin_path_value', 'backend');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment