]> git.andy128k.dev Git - ipf-legacy-orm.git/commitdiff
fix validator class name builder
authorAndrey Kutejko <andy128k@gmail.com>
Sun, 23 Jun 2013 15:37:34 +0000 (18:37 +0300)
committerAndrey Kutejko <andy128k@gmail.com>
Sun, 23 Jun 2013 15:37:34 +0000 (18:37 +0300)
ipf/orm/validator.php

index 0fd7340223ae36ea62e2cf44be15dd921330aac5..5ad9d23e71d38566e59ef0b7f63dee7ee7234638 100644 (file)
@@ -6,7 +6,7 @@ class IPF_ORM_Validator extends IPF_ORM_Locator_Injectable
     public static function getValidator($name)
     {
         if ( ! isset(self::$validators[$name])) {
-            $class = 'IPF_ORM_Validator_' . ucwords(strtolower($name));
+            $class = 'IPF_ORM_Validator_' . ucfirst($name);
             if (class_exists($class)) {
                 self::$validators[$name] = new $class;
             } else if (class_exists($name)) {
@@ -95,4 +95,4 @@ class IPF_ORM_Validator extends IPF_ORM_Locator_Injectable
                  return false;
          }
      }
-}
\ No newline at end of file
+}