From 0b4d47d951b879ccc9daacb3eb15fd9eb5d4f854 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Sat, 27 Apr 2013 22:02:08 -0400 Subject: [PATCH] Support default standard component class. --- framework/base/Module.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/framework/base/Module.php b/framework/base/Module.php index 959bb04..b1597e2 100644 --- a/framework/base/Module.php +++ b/framework/base/Module.php @@ -531,6 +531,9 @@ abstract class Module extends Component public function setComponents($components) { foreach ($components as $id => $component) { + if (isset($this->_components[$id]['class']) && !isset($component['class'])) { + $component['class'] = $this->_components[$id]['class']; + } $this->_components[$id] = $component; } }