1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

Clean-up of {USER_NAME_LINK}

This commit is contained in:
Tijn Kuyper
2017-01-24 22:02:57 +01:00
parent 5b10ab72e0
commit eaebab16f5

View File

@@ -409,8 +409,8 @@ class user_shortcodes extends e_shortcode
function sc_user_name_link($parm='')
{
$uparams = array('id' => $this->var['user_id'], 'name' => $this->var['user_name']);
return "<a href='".e107::getUrl()->create('user/profile/view', $uparams)."'>".$this->var['user_name']."</a>";
$url = $this->sc_user_profile_url();
return "<a href='".$url."'>".$this->var['user_name']."</a>";
}