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
951ed45e
Commit
951ed45e
authored
Feb 27, 2006
by
Gerhard Killesreiter
Browse files
#51602
, Mis-typed user_access() in delete-confirm, patch by njivy
parent
b7e81dbc
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/path.module
View file @
951ed45e
...
...
@@ -100,7 +100,7 @@ function path_admin_edit($pid = 0) {
**/
function
path_admin_delete_confirm
(
$pid
)
{
$path
=
path_load
(
$pid
);
if
(
user_access
(
'administer
path
aliases'
))
{
if
(
user_access
(
'administer
url
aliases'
))
{
$form
[
'pid'
]
=
array
(
'#type'
=>
'value'
,
'#value'
=>
$pid
);
$output
=
confirm_form
(
'path_admin_delete_confirm'
,
$form
,
t
(
'Are you sure you want to delete path alias %title?'
,
array
(
'%title'
=>
theme
(
'placeholder'
,
$path
[
'dst'
]))),
...
...
modules/path/path.module
View file @
951ed45e
...
...
@@ -100,7 +100,7 @@ function path_admin_edit($pid = 0) {
**/
function
path_admin_delete_confirm
(
$pid
)
{
$path
=
path_load
(
$pid
);
if
(
user_access
(
'administer
path
aliases'
))
{
if
(
user_access
(
'administer
url
aliases'
))
{
$form
[
'pid'
]
=
array
(
'#type'
=>
'value'
,
'#value'
=>
$pid
);
$output
=
confirm_form
(
'path_admin_delete_confirm'
,
$form
,
t
(
'Are you sure you want to delete path alias %title?'
,
array
(
'%title'
=>
theme
(
'placeholder'
,
$path
[
'dst'
]))),
...
...
Write
Preview
Markdown
is supported
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