Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rename_admin_paths
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
rename_admin_paths
Commits
cf38ef17
Commit
cf38ef17
authored
12 years ago
by
Solomon Gifford
Committed by
Raphael Apard
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#1703242
by solomongifford: Prevent the second call by PURL module.
parent
85167c14
Branches
Branches containing commit
Tags
7.x-2.0-beta5
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rename_admin_paths.module
+5
-0
5 additions, 0 deletions
rename_admin_paths.module
with
5 additions
and
0 deletions
rename_admin_paths.module
+
5
−
0
View file @
cf38ef17
...
@@ -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'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment