minor - added get_lang function for username and password tems - partial DT#5666

skala
Cristian Fasanando 16 years ago
parent 50d80b4268
commit 0edae40cc4
  1. 4
      main/inc/lib/main_api.lib.php

@ -2167,9 +2167,9 @@ function api_not_allowed($print_headers = false) {
} }
require_once api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php'; require_once api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php';
$form = new FormValidator('formLogin', 'post', api_get_self().'?'.$_SERVER['QUERY_STRING']); $form = new FormValidator('formLogin', 'post', api_get_self().'?'.$_SERVER['QUERY_STRING']);
$form->addElement('static', null, null, 'Username'); $form->addElement('static', null, null, get_lang('UserName'));
$form->addElement('text', 'login', '', array('size' => USERNAME_MAX_LENGTH)); $form->addElement('text', 'login', '', array('size' => USERNAME_MAX_LENGTH));
$form->addElement('static', null, null, 'Password'); $form->addElement('static', null, null, get_lang('Password'));
$form->addElement('password', 'password', '', array('size' => 15)); $form->addElement('password', 'password', '', array('size' => 15));
$form->addElement('style_submit_button', 'submitAuth', get_lang('Enter'),'class="login"'); $form->addElement('style_submit_button', 'submitAuth', get_lang('Enter'),'class="login"');
$test ='<div id="expire_session"><br />'.$form->return_form().'</div>'; $test ='<div id="expire_session"><br />'.$form->return_form().'</div>';

Loading…
Cancel
Save