<?php
/**
* @package XenCentral Framework
* @author Skydevelop EU
* @copyright Drnoyan & Nalyan LDA, Portugal, EU
* @license http://www.dnf.pt/eula.html
* @link http://www.skydevelop.com
* @version 1.4.1
* @revision 125
*/

class XenCentral_Framework_Navigation_Admin
{
    public static function activateXenCentralTab(XenForo_FrontController $fc, XenForo_ControllerResponse_Abstract &$controllerResponse, XenForo_ViewRenderer_Abstract &$viewRenderer, array &$containerParams)
    {
        if ($fc->getRequest()->getParam('group_id', false) == 'xcfw' || $fc->getRequest()->getParam('addon_id', false) == 'xcfw') {
            $containerParams['majorSection'] = 'xencentral';
            $containerParams['minorSection'] = 'xcfw';
        }
        if ($controllerResponse->controllerName == 'XenCentral_Framework_ControllerAdmin_Framework') {
            if ($containerParams['majorSection'] == 'xcfw') {
                $containerParams['majorSection'] = 'xencentral';
                $containerParams['minorSection'] = 'xcfw';
            }
        }
    }
}
?>