From f1f2674d28532cd8e876ee1dce63b910e1750255 Mon Sep 17 00:00:00 2001 From: David Date: Sat, 8 Aug 2015 20:43:23 +0200 Subject: fixed validator by using short class name --- framework/Web/UI/WebControls/TBaseValidator.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'framework/Web/UI') diff --git a/framework/Web/UI/WebControls/TBaseValidator.php b/framework/Web/UI/WebControls/TBaseValidator.php index f89165b7..d39713f0 100644 --- a/framework/Web/UI/WebControls/TBaseValidator.php +++ b/framework/Web/UI/WebControls/TBaseValidator.php @@ -192,7 +192,8 @@ abstract class TBaseValidator extends TLabel implements IValidator foreach(self::$_clientClass as $type) if($control instanceof $type) return $type; - return get_class($control); + $reflectionClass = new \ReflectionClass($control); + return $reflectionClass->getShortName(); } /** -- cgit v1.2.3