summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TBaseValidator.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI/WebControls/TBaseValidator.php')
-rw-r--r--framework/Web/UI/WebControls/TBaseValidator.php3
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();
}
/**