XOOPS Cube Legacy base repository
修訂 | 2f494bf8e44b95d5e29249265341dd82087a800a (tree) |
---|---|
時間 | 2011-11-21 23:09:00 |
作者 | nbuy <nbuy@704c...> |
Commiter | nbuy |
use cache active modules for speed up
git-svn-id: https://xoopscube.svn.sourceforge.net/svnroot/xoopscube/Package_Legacy/trunk@1061 704cf05f-ae62-4b0e-a484-234ee0250e75
@@ -68,9 +68,7 @@ class Legacy_BlockListAction extends Legacy_AbstractListAction | ||
68 | 68 | $render->setAttribute("objects", $this->mObjects); |
69 | 69 | $render->setAttribute("pageNavi", $this->mFilter->mNavi); |
70 | 70 | |
71 | - $moduleHandler =& xoops_gethandler('module'); | |
72 | - $modules =& $moduleHandler->getObjects(new Criteria('isactive', 1)); | |
73 | - $render->setAttribute('modules', $modules); | |
71 | + $render->setAttribute('modules', $controller->mActiveModules); | |
74 | 72 | $render->setAttribute('filterForm', $this->mFilter); |
75 | 73 | $render->setAttribute('pageArr', $this->mpageArr); |
76 | 74 | // |