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

/**
 * Modules HTML View Class
 *   
 * @author    	<NAME> <http://nooku.assembla.com/profile/stiandidriksen>
 * @category    Nooku
 * @package     Nooku_Server
 * @subpackage  Extensions
 */
class ComExtensionsViewModuleHtml extends ComDefaultViewHtml
{
	public function display()
	{
	    $module = $this->getModel()->getItem();
	   
	    if($module->application == 'site') {
	        JFactory::getLanguage()->load($module->type, JPATH_SITE );
	    } else {
		    JFactory::getLanguage()->load($module->type);
	    }
		
		return parent::display();
	}
}<commit_msg>re #231 : Replaced JPATH_SITE with JPATH_ROOT.'/site'<commit_after><?php
/**
 * @version     $Id$
 * @category	Nooku
 * @package     Nooku_Server
 * @subpackage  Extensions
 * @copyright   Copyright (C) 2011 - 2012 Timble CVBA and Contributors. (http://www.timble.net).
 * @license     GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link        http://www.nooku.org
 */

/**
 * Modules HTML View Class
 *   
 * @author    	<NAME> <http://nooku.assembla.com/profile/stiandidriksen>
 * @category    Nooku
 * @package     Nooku_Server
 * @subpackage  Extensions
 */
class ComExtensionsViewModuleHtml extends ComDefaultViewHtml
{
	public function display()
	{
	    $module = $this->getModel()->getItem();
	   
	    if($module->application == 'site') {
	        JFactory::getLanguage()->load($module->type, JPATH_ROOT.'/site' );
	    } else {
		    JFactory::getLanguage()->load($module->type);
	    }
		
		return parent::display();
	}
}
{'fraction_non_alphanumeric': 0.1586433260393873, 'fraction_numerical': 0.011487964989059081, 'mean_word_length': 3.0734966592427617, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 23, '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': '981630', 'n_tokens_mistral': 652, 'n_tokens_neox': 601, 'n_words': 115}