X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/75eff172d58ac5b4f017434743f8f8d5d8fd1554..77da39e33eb70b8b01502c09e8057dd199554de6:/WEB-INF/lib/form/Form.class.php diff --git a/WEB-INF/lib/form/Form.class.php b/WEB-INF/lib/form/Form.class.php index cf7890c6..5a4baa9b 100644 --- a/WEB-INF/lib/form/Form.class.php +++ b/WEB-INF/lib/form/Form.class.php @@ -135,7 +135,7 @@ class Form { 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"]); @@ -153,7 +153,7 @@ class Form { 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;