Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
a9b8a48e
Commit
a9b8a48e
authored
Jan 13, 2009
by
Dries
Browse files
- Rollback of
#190867
.
parent
424cf1b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/path/path.admin.inc
View file @
a9b8a48e
...
...
@@ -148,8 +148,8 @@ function path_admin_form_validate($form, &$form_state) {
form_set_error
(
'dst'
,
t
(
'The alias %alias is already in use in this language.'
,
array
(
'%alias'
=>
$dst
)));
}
$item
=
menu_get_item
(
$src
);
if
(
!
$item
)
{
form_set_error
(
'src'
,
t
(
"The path '@link_path' is
invalid
."
,
array
(
'@link_path'
=>
$src
)));
if
(
!
$item
||
!
$item
[
'access'
]
)
{
form_set_error
(
'src'
,
t
(
"The path '@link_path' is
either invalid or you do not have access to it
."
,
array
(
'@link_path'
=>
$src
)));
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment