mirror of
https://github.com/e107inc/e107.git
synced 2025-08-11 00:54:49 +02:00
Issue #1309. e_BASE."user.php" replaced with SEF URL.
This commit is contained in:
@@ -48,10 +48,14 @@ class list_members
|
||||
{
|
||||
while($row = $this->parent->e107->sql->fetch())
|
||||
{
|
||||
$record = array();
|
||||
$record = array();
|
||||
$rowheading = $this->parent->parse_heading($row['user_name']);
|
||||
//<a href='".e_BASE."user.php?id.".$row['user_id']."'>".$rowheading."</a>
|
||||
$uparams = array('id' => $row['user_id'], 'name' => $rowheading);
|
||||
$link = e107::getUrl()->create('user/profile/view', $uparams);
|
||||
$userlink = "<a href='".$link."'>".$rowheading."</a>";
|
||||
$record['icon'] = $bullet;
|
||||
$record['heading'] = (USER ? "<a href='".e_BASE."user.php?id.".$row['user_id']."'>".$rowheading."</a>" : $rowheading);
|
||||
$record['heading'] = (USER ? $userlink : $rowheading);
|
||||
$record['category'] = '';
|
||||
$record['author'] = '';
|
||||
$record['date'] = (vartrue($this->parent->settings['date']) ? $this->parent->getListDate($row['user_join']) : "");
|
||||
|
@@ -82,7 +82,10 @@ class list_news
|
||||
{
|
||||
if(vartrue($row['news_author_name']))
|
||||
{
|
||||
$record['author'] = "<a href='".e_BASE."user.php?id.".$row['news_author_id']."'>".$row['news_author_name']."</a>";
|
||||
//$record['author'] = "<a href='".e_BASE."user.php?id.".$row['news_author_id']."'>".$row['news_author_name']."</a>";
|
||||
$uparams = array('id' => $row['news_author_id'], 'name' => $row['news_author_name']);
|
||||
$link = e107::getUrl()->create('user/profile/view', $uparams);
|
||||
$record['author'] = "<a href='".$link."'>".$row['news_author_name']."</a>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user