diff options
author | David <ottodavid@gmx.net> | 2015-08-08 20:43:23 +0200 |
---|---|---|
committer | David <ottodavid@gmx.net> | 2015-08-08 21:11:10 +0200 |
commit | f1f2674d28532cd8e876ee1dce63b910e1750255 (patch) | |
tree | 4ae88784dc1f74c45b4546b90f56de63fcbf6672 /framework/Web | |
parent | fac491977897c1caba81e01cf6af2d195139ad97 (diff) |
fixed validator by using short class name
Diffstat (limited to 'framework/Web')
-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(); } /** |