if (!$user->uid) { $output .= drupal_render(drupal_get_form('user_login_block')); } else if (!variable_get('disable_welcome_box', FALSE)) { $output .= t('<p class="user-info">Hi !user, welcome back.</p>', array('!user' => theme('username', array('account' => $user)))); $output .= theme('item_list', array('attributes' => array('class' => 'welcome-box'), 'items' => array( l(t('Your account'), 'user/' . $user->uid, array('attributes' => array('title' => t('Edit your account')))), l(t('Sign out'), 'user/logout', array('attributes' => array('title' => t('Logout')))), )));
在推出登陆条之后,出现如图错误。
判断为PHp版本问题,但我不会改写代码,还请代码朋友帮忙改写,谢谢!
板块
标签
Drupal 版本