summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid <ottodavid@gmx.net>2015-08-08 20:43:23 +0200
committerDavid <ottodavid@gmx.net>2015-08-08 21:11:10 +0200
commitf1f2674d28532cd8e876ee1dce63b910e1750255 (patch)
tree4ae88784dc1f74c45b4546b90f56de63fcbf6672
parentfac491977897c1caba81e01cf6af2d195139ad97 (diff)
fixed validator by using short class name
-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();
}
/**