<commit_before><?php
/**
 * @version     $Id$
 * @category	Nooku
 * @package     Nooku_Server
 * @subpackage  Modules
 * @copyright   Copyright (C) 2011 Timble CVBA and Contributors. (http://www.timble.net).
 * @license     GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link        http://www.nooku.org
 */

/**
 * Modules Menubar Class
 *
 * @author      <NAME> <http://nooku.assembla.com/profile/stiandidriksen>
 * @category	Nooku
 * @package     Nooku_Server
 * @subpackage  Modules
 */
class ComModulesControllerToolbarMenubar extends ComDefaultControllerToolbarMenubar
{
    public function getCommands()
    { 
        $name = $this->getController()->getIdentifier()->name;
        
        $this->addCommand('Modules', array(
        	'href' => JRoute::_('index.php?option=com_modules&view=modules'), 
            'active' => ($name == 'module')
        ));
        
        $this->addCommand('Plugins', array(
        	'href' => JRoute::_('index.php?option=com_plugins&view=plugins'),
        	'active' => ($name == 'plugin')
        ));
        
        $this->addCommand('Templates', array(
        	'href' => JRoute::_('index.php?option=com_templates&view=templates'),
            'active' => ($name == 'template')
        ));
        
        $this->addCommand('Languages', array(
        	'href' => JRoute::_('index.php?option=com_languages&view=languages'),
            'active' => ($name == 'language')
        ));
         
        return parent::getCommands();
    }
}<commit_msg>re #141 : Fixed menubar<commit_after><?php
/**
 * @version     $Id$
 * @category	Nooku
 * @package     Nooku_Server
 * @subpackage  Modules
 * @copyright   Copyright (C) 2011 Timble CVBA and Contributors. (http://www.timble.net).
 * @license     GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link        http://www.nooku.org
 */

/**
 * Modules Menubar Class
 *
 * @author      <NAME> <http://nooku.assembla.com/profile/stiandidriksen>
 * @category	Nooku
 * @package     Nooku_Server
 * @subpackage  Modules
 */
class ComExtensionsControllerToolbarMenubar extends ComDefaultControllerToolbarMenubar
{
    public function getCommands()
    { 
        $name = $this->getController()->getIdentifier()->name;
        
        $this->addCommand('Modules', array(
        	'href' => JRoute::_('index.php?option=com_extensions&view=modules'), 
            'active' => ($name == 'module')
        ));
        
        $this->addCommand('Plugins', array(
        	'href' => JRoute::_('index.php?option=com_extensions&view=plugins'),
        	'active' => ($name == 'plugin')
        ));
        
        $this->addCommand('Templates', array(
        	'href' => JRoute::_('index.php?option=com_extensions&view=templates'),
            'active' => ($name == 'template')
        ));
        
        $this->addCommand('Languages', array(
        	'href' => JRoute::_('index.php?option=com_extensions&view=languages'),
            'active' => ($name == 'language')
        ));
         
        return parent::getCommands();
    }
}
{'fraction_non_alphanumeric': 0.1690326840541433, 'fraction_numerical': 0.004291845493562232, 'mean_word_length': 2.5943060498220643, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 39, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3405675', 'n_tokens_mistral': 958, 'n_tokens_neox': 956, 'n_words': 153}