Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
986a476c
Commit
986a476c
authored
Oct 12, 2004
by
Steven Wittens
Browse files
Reverting the last
#9292
(php 5 compatibility) patch, by request of killes. It broke stuff.
parent
306cfdf1
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/menu.inc
View file @
986a476c
...
...
@@ -346,7 +346,7 @@ function menu_execute_active_handler() {
$arguments
=
array_key_exists
(
'callback arguments'
,
$menu
[
'items'
][
$mid
])
?
$menu
[
'items'
][
$mid
][
'callback arguments'
]
:
array
();
$arg
=
substr
(
$_GET
[
'q'
],
strlen
(
$menu
[
'items'
][
$mid
][
'path'
])
+
1
);
if
(
strlen
(
$arg
))
{
$arguments
=
array_merge
(
array
(
$arguments
)
,
explode
(
'/'
,
$arg
));
$arguments
=
array_merge
(
$arguments
,
explode
(
'/'
,
$arg
));
}
call_user_func_array
(
$menu
[
'items'
][
$mid
][
'callback'
],
$arguments
);
return
MENU_FOUND
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment