// Improve flexibility of dispatcher + fix controllers access in BO (only admin controllers are loaded by the dispatcher)

This commit is contained in:
rMalie
2011-09-26 09:57:00 +00:00
parent f5c9531194
commit 5829f12a66
6 changed files with 104 additions and 63 deletions
+2 -1
View File
@@ -278,7 +278,8 @@ echo ' </select>
if (empty($tab))
echo '<div class="mainsubtablist" style="display:none"></div>';
// This is made to display the subtab list
$id_current_tab = (int)(Tab::getIdFromClassName(Dispatcher::$controllers[$tab]));
$controllers = Dispatcher::getControllers(_PS_ADMIN_DIR_.'/tabs/');
$id_current_tab = (int)Tab::getIdFromClassName($controllers[$tab]);
$myCurrentTab = new Tab($id_current_tab);
$tabs = Tab::getTabs(Context::getContext()->language->id, 0);
$echoLis = '';