Ignore:
Timestamp:
Feb 20, 2011, 3:40:42 PM (13 years ago)
Author:
Eric
Message:
  • Bug 2066 fixed : There was a bug still remaining in the notification feature.
  • Tablesorter JQuery script updated
  • Initial config updated
  • Refactory of LCAS options vars ($conf_LCAS[x]) : We start now with offset 0 instead of 1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/LCAS/trunk/main.inc.php

    r9232 r9326  
    9898  if (script_basename() == 'identification')
    9999  {
    100     if (isset($_POST['username']) and isset($conf_LCAS[1]))
     100    if (isset($_POST['username']) and isset($conf_LCAS[0]))
    101101    {
    102       $new_username = LCAS_SearchCaseUsername($_POST['username'],$conf_LCAS[1]);
     102      $new_username = LCAS_SearchCaseUsername($_POST['username'],$conf_LCAS[0]);
    103103      $_POST['username'] = $new_username == '' ? $_POST['username'] : $new_username;
    104104    }
     
    108108  if (script_basename() == 'register') {
    109109    $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])],
    111111      'LCAS_password_tooltip' => $lang['LCAS_tooltip_password_register'],
    112112    ));
     
    127127  load_language('plugin.lang', LCAS_PATH);
    128128
    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]);
    131131 
    132132  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])];
    134134 
    135135  return $errors;
     
    169169 
    170170  $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])],
    172172    'LCAS_password_tooltip' => $lang['LCAS_tooltip_password_index'],
    173173  ));
Note: See TracChangeset for help on using the changeset viewer.