diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2012-01-30 20:15:24 -0800 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2012-01-30 20:15:24 -0800 |
commit | c367b7d954e04cd10008c0f6111cb36c67b0ba0c (patch) | |
tree | 871dc7d28947e87c65b4cbd61bf92656745c9cde /modules | |
parent | 1dc0815d475b59969529fca1ae3f290b285e54ac (diff) | |
download | brdo-c367b7d954e04cd10008c0f6111cb36c67b0ba0c.tar.gz brdo-c367b7d954e04cd10008c0f6111cb36c67b0ba0c.tar.bz2 |
Issue #1411592 by dadikof, Niklas Fiekas: Fixed func_get_args() can't be used as a function parameter before PHP 5.3.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/field_ui/field_ui.module | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/field_ui/field_ui.module b/modules/field_ui/field_ui.module index b8b80db96..7bfb4faa7 100644 --- a/modules/field_ui/field_ui.module +++ b/modules/field_ui/field_ui.module @@ -265,7 +265,8 @@ function _field_ui_view_mode_menu_access($entity_type, $bundle, $view_mode, $acc // part of _menu_check_access(). if ($visibility) { // Grab the variable 'access arguments' part. - $args = array_slice(func_get_args(), 4); + $all_args = func_get_args(); + $args = array_slice($all_args, 4); $callback = empty($access_callback) ? 0 : trim($access_callback); if (is_numeric($callback)) { return (bool) $callback; |