diff --git a/main/inc/lib/formvalidator/Element/datepicker.php b/main/inc/lib/formvalidator/Element/datepicker_old.php similarity index 100% rename from main/inc/lib/formvalidator/Element/datepicker.php rename to main/inc/lib/formvalidator/Element/datepicker_old.php diff --git a/main/inc/lib/formvalidator/FormValidator.class.php b/main/inc/lib/formvalidator/FormValidator.class.php index a7f6c8ea8b..443f6c00ee 100644 --- a/main/inc/lib/formvalidator/FormValidator.class.php +++ b/main/inc/lib/formvalidator/FormValidator.class.php @@ -124,13 +124,12 @@ class FormValidator extends HTML_QuickForm // Load some custom elements and rules $dir = api_get_path(LIBRARY_PATH) . 'formvalidator/'; - $this->registerElementType('html_editor', $dir . 'Element/html_editor.php', 'HTML_QuickForm_html_editor'); + $this->registerElementType('html_editor', $dir . 'Element/html_editor.php', 'HTML_QuickForm_html_editor'); $this->registerElementType('date_range_picker', $dir . 'Element/DateRangePicker.php', 'DateRangePicker'); $this->registerElementType('date_time_picker', $dir . 'Element/DateTimePicker.php', 'DateTimePicker'); $this->registerElementType('date_picker', $dir . 'Element/DatePicker.php', 'DatePicker'); - - $this->registerElementType('datepicker', $dir . 'Element/datepicker.php', 'HTML_QuickForm_datepicker'); + $this->registerElementType('datepicker', $dir . 'Element/datepicker_old.php', 'HTML_QuickForm_datepicker'); $this->registerElementType('datepickerdate', $dir . 'Element/datepickerdate.php', 'HTML_QuickForm_datepickerdate'); $this->registerElementType('receivers', $dir . 'Element/receivers.php', 'HTML_QuickForm_receivers'); $this->registerElementType('select_language', $dir . 'Element/select_language.php', 'HTML_QuickForm_Select_Language');