]> git.andy128k.dev Git - ipf.git/commitdiff
fix class names
authorAndrey Kutejko <andy128k@gmail.com>
Sun, 23 Jun 2013 15:25:40 +0000 (18:25 +0300)
committerAndrey Kutejko <andy128k@gmail.com>
Sun, 23 Jun 2013 15:25:40 +0000 (18:25 +0300)
ipf/form/field/varchar.php
ipf/form/model.php

index de44321648143d0357a822866cfb5507077b8a2f..6946d95f6c067a4d3fa698affa3d073828ff6316 100644 (file)
@@ -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;
     }
 }
index cf3a32aeb5b5998ace3e5f3c923c92a05a33504a..07b52f2cd3f992c54ce40cb4652669ef23b73ac0 100644 (file)
@@ -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);