case 'textarea':
import('form.TextArea');
$el = new TextArea($params['name']);
- if (isset($params['cols'])) $el->setColumns($params['cols']);
- if (isset($params['rows'])) $el->setRows($params['rows']);
if (isset($params['maxlength'])) $el->setMaxLength($params['maxlength']);
break;
if ($el!=null) {
$el->setFormName($this->name);
if (isset($params["id"])) $el->setId($params["id"]);
- if (isset($GLOBALS["I18N"])) $el->localize($GLOBALS["I18N"]);
+ $el->localize();
if (isset($params["enable"])) $el->setEnabled($params["enable"]);
if (isset($params["style"])) $el->setStyle($params["style"]);
function addInputElement(&$el) {
if ($el && is_object($el)) {
- if (isset($GLOBALS["I18N"])) $el->localize($GLOBALS["I18N"]);
+ $el->localize();
$el->setFormName($this->name);
$this->elements[$el->name] = &$el;