From 3e32d7591b6a0be42dd6a6656af74ce62c2e489b Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Sun, 23 Jun 2013 18:25:40 +0300 Subject: [PATCH] fix class names --- ipf/form/field/varchar.php | 2 +- ipf/form/model.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ipf/form/field/varchar.php b/ipf/form/field/varchar.php index de44321..6946d95 100644 --- a/ipf/form/field/varchar.php +++ b/ipf/form/field/varchar.php @@ -33,7 +33,7 @@ class IPF_Form_Field_Varchar extends IPF_Form_Field protected function getWidget() { if ($this->max_length>255) - return 'IPF_Form_Widget_TextAreaInput'; + return 'IPF_Form_Widget_TextareaInput'; return $this->widget; } } diff --git a/ipf/form/model.php b/ipf/form/model.php index cf3a32a..07b52f2 100644 --- a/ipf/form/model.php +++ b/ipf/form/model.php @@ -85,7 +85,7 @@ class IPF_Form_Model extends IPF_Form if (isset($col['html'])) $type = 'html'; - $cn = 'IPF_Form_DB_'.$type; + $cn = 'IPF_Form_DB_'.ucfirst($type); $db_field = new $cn('', $name, $col); -- 2.49.0