- Patch #50106 by webchick: code clean-up.

4.7.x
Dries Buytaert 2006-02-21 14:45:46 +00:00
parent 3bef13458a
commit 8b3bf4d005
2 changed files with 2 additions and 2 deletions

View File

@ -774,7 +774,7 @@ function user_menu($may_cache) {
$items[] = array('path' => 'user/'. arg(1), 'title' => t('user'),
'type' => MENU_CALLBACK, 'callback' => 'user_view',
'callback arguments' => arg(1), 'access' => $view_access);
'callback arguments' => array(arg(1)), 'access' => $view_access);
if ($user_exists !== FALSE || $admin_access) {
$items[] = array('path' => 'user/'. arg(1) .'/view', 'title' => t('view'),

View File

@ -774,7 +774,7 @@ function user_menu($may_cache) {
$items[] = array('path' => 'user/'. arg(1), 'title' => t('user'),
'type' => MENU_CALLBACK, 'callback' => 'user_view',
'callback arguments' => arg(1), 'access' => $view_access);
'callback arguments' => array(arg(1)), 'access' => $view_access);
if ($user_exists !== FALSE || $admin_access) {
$items[] = array('path' => 'user/'. arg(1) .'/view', 'title' => t('view'),