Changeset 9326 for extensions/LCAS/trunk/main.inc.php
- Timestamp:
- Feb 20, 2011, 3:40:42 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LCAS/trunk/main.inc.php
r9232 r9326 98 98 if (script_basename() == 'identification') 99 99 { 100 if (isset($_POST['username']) and isset($conf_LCAS[ 1]))100 if (isset($_POST['username']) and isset($conf_LCAS[0])) 101 101 { 102 $new_username = LCAS_SearchCaseUsername($_POST['username'],$conf_LCAS[ 1]);102 $new_username = LCAS_SearchCaseUsername($_POST['username'],$conf_LCAS[0]); 103 103 $_POST['username'] = $new_username == '' ? $_POST['username'] : $new_username; 104 104 } … … 108 108 if (script_basename() == 'register') { 109 109 $template->assign(array( 110 'LCAS_username_tooltip' => $lang['LCAS_tooltip_username_register'][intval($conf_LCAS[ 1])],110 'LCAS_username_tooltip' => $lang['LCAS_tooltip_username_register'][intval($conf_LCAS[0])], 111 111 'LCAS_password_tooltip' => $lang['LCAS_tooltip_password_register'], 112 112 )); … … 127 127 load_language('plugin.lang', LCAS_PATH); 128 128 129 if (isset($conf_LCAS[ 1]))130 $NewPostLogin = LCAS_SearchCaseUsername($_POST['login'], $conf_LCAS[ 1]);129 if (isset($conf_LCAS[0])) 130 $NewPostLogin = LCAS_SearchCaseUsername($_POST['login'], $conf_LCAS[0]); 131 131 132 132 if (isset($NewPostLogin) and get_userid($NewPostLogin)) 133 $errors[] = $lang['LCAS_error'][intval($conf_LCAS[ 1])];133 $errors[] = $lang['LCAS_error'][intval($conf_LCAS[0])]; 134 134 135 135 return $errors; … … 169 169 170 170 $template->assign(array( 171 'LCAS_username_tooltip' => $lang['LCAS_tooltip_username_index'][intval($conf_LCAS[ 1])],171 'LCAS_username_tooltip' => $lang['LCAS_tooltip_username_index'][intval($conf_LCAS[0])], 172 172 'LCAS_password_tooltip' => $lang['LCAS_tooltip_password_index'], 173 173 ));
Note: See TracChangeset
for help on using the changeset viewer.