diff options
-rw-r--r-- | framework/Web/UI/WebControls/TBaseValidator.php | 3 |
1 files changed, 2 insertions, 1 deletions
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(); } /** |