From 48af73d5e9c8ffbfc799eb483c956bf108896ae2 Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Sun, 23 Jun 2013 18:37:34 +0300 Subject: [PATCH] fix validator class name builder --- ipf/orm/validator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +} -- 2.49.0