From: Andrey Kutejko Date: Sun, 23 Jun 2013 15:37:34 +0000 (+0300) Subject: fix validator class name builder X-Git-Tag: 0.6~106 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=48af73d5e9c8ffbfc799eb483c956bf108896ae2;p=ipf-legacy-orm.git fix validator class name builder --- diff --git a/ipf/orm/validator.php b/ipf/orm/validator.php index 0fd7340..5ad9d23 100644 --- a/ipf/orm/validator.php +++ b/ipf/orm/validator.php @@ -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 +}