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

/**
 * Log Template Helper Class
 *
 * @author      <NAME> <http://nooku.assembla.com/profile/johanjanssens>
 * @category	Nooku
 * @package    	Nooku_Server
 * @subpackage 	Users
 */

class ComUsersTemplateHelperActivity extends ComActivitiesTemplateHelperActivity
{
    public function message($config = array())
	{
	    $config = new KConfig($config);
		$config->append(array(
			'row'      => ''
		));
		
		$row = $config->row;
		
		if($row->action == 'login' || $row->action == 'logout') 
		{    
		    $item = $this->getTemplate()->getView()->createRoute('option='.$row->type.'_'.$row->package.'&view='.$row->name.'&id='.$row->row);
		    
		    $message   = '<a href="'.$item.'">'.$row->title.'</a>'; 
		    $message  .= ' <span class="action">'.$row->status.'</span>';
		}
		else $message = parent::message($config);
		
		return $message;
	}
}<commit_msg>Renamed KViewAbstract::createRoute() to getRoute().<commit_after><?php
/**
 * @version		$Id$
 * @category	Nooku
 * @package     Nooku_Server
 * @subpackage  Users
 * @copyright	Copyright (C) 2010 Timble CVBA and Contributors. (http://www.timble.net)
 * @license		GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link		http://www.nooku.org
 */

/**
 * Log Template Helper Class
 *
 * @author      <NAME> <http://nooku.assembla.com/profile/johanjanssens>
 * @category	Nooku
 * @package    	Nooku_Server
 * @subpackage 	Users
 */

class ComUsersTemplateHelperActivity extends ComActivitiesTemplateHelperActivity
{
    public function message($config = array())
	{
	    $config = new KConfig($config);
		$config->append(array(
			'row'      => ''
		));
		
		$row = $config->row;
		
		if($row->action == 'login' || $row->action == 'logout') 
		{    
		    $item = $this->getTemplate()->getView()->getRoute('option='.$row->type.'_'.$row->package.'&view='.$row->name.'&id='.$row->row);
		    
		    $message   = '<a href="'.$item.'">'.$row->title.'</a>'; 
		    $message  .= ' <span class="action">'.$row->status.'</span>';
		}
		else $message = parent::message($config);
		
		return $message;
	}
}
{'fraction_non_alphanumeric': 0.20424628450106158, 'fraction_numerical': 0.004246284501061571, 'mean_word_length': 3.2758620689655173, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 45, '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': '4741553', 'n_tokens_mistral': 886, 'n_tokens_neox': 821, 'n_words': 141}