diff options
author | Jens Klaer <kj.landwehr.software@gmail.com> | 2015-08-18 12:22:57 +0200 |
---|---|---|
committer | Jens Klaer <kj.landwehr.software@gmail.com> | 2015-08-18 12:22:57 +0200 |
commit | 72d9fc3857380744ab4996fd988532959a39e73d (patch) | |
tree | 69277368edc53476fd8fa5a25e8e7044409afcfe | |
parent | 9a01a40029c644be2dfe0d225c1e8fb1265805b4 (diff) |
fix behavior methods on templates
-rw-r--r-- | framework/Web/UI/TTemplateManager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Web/UI/TTemplateManager.php b/framework/Web/UI/TTemplateManager.php index 05c23fdc..968618bc 100644 --- a/framework/Web/UI/TTemplateManager.php +++ b/framework/Web/UI/TTemplateManager.php @@ -1083,7 +1083,7 @@ class TTemplate extends TApplicationComponent implements ITemplate return false; foreach($behaviors['_um'] as $name=>$list) { - if(!$class->isSubclassOf($name)) continue; + if(strtolower($class->getShortName())!==$name && !$class->isSubclassOf($name)) continue; foreach($list as $param) { if(method_exists($param->getBehavior(),$method)) |