1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-09 08:06:38 +02:00

Issue #1309. e_BASE."user.php" replaced with SEF URL.

This commit is contained in:
Cameron
2016-01-24 20:11:32 -08:00
parent a00acf6319
commit cf3ca653c0
3 changed files with 48 additions and 20 deletions

View File

@@ -35,7 +35,12 @@ class online_shortcodes
// Last Seen Menu
function sc_lastseen_userlink()
{
return "<a href='".e_BASE."user.php?id.".$this->currentUser['user_id']."'>".$this->currentUser['user_name']."</a>";
$uparams = array('id' => $this->currentUser['user_id'], 'name' => $this->currentUser['user_name']);
$link = e107::getUrl()->create('user/profile/view', $uparams);
return "<a href='".$link."'>".$this->currentUser['user_name']."</a>";
// $uparams = array('id' => $this->currentUser['user_id'], 'name' => $this->currentUser['user_name']);
// return "<a href='".e_BASE."user.php?id.".$this->currentUser['user_id']."'>".$this->currentUser['user_name']."</a>";
}
function sc_lastseen_date()