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

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

This commit is contained in:
Jimmi08
2016-01-27 11:56:59 +01:00
parent a16ae500bb
commit 5750b91b91
13 changed files with 79 additions and 22 deletions

View File

@@ -364,8 +364,12 @@ if ($action == "uopt")
foreach($activeUploads as $row)
{
$post_author_id = substr($row['upload_poster'], 0, strpos($row['upload_poster'], "."));
$post_author_name = substr($row['upload_poster'], (strpos($row['upload_poster'], ".")+1));
$poster = (!$post_author_id ? "<b>".$post_author_name."</b>" : "<a href='".e_BASE."user.php?id.".$post_author_id."'><b>".$post_author_name."</b></a>");
$post_author_name = substr($row['upload_poster'], (strpos($row['upload_poster'], ".")+1));
// $poster = (!$post_author_id ? "<b>".$post_author_name."</b>" : "<a href='".e_BASE."user.php?id.".$post_author_id."'><b>".$post_author_name."</b></a>");
$uparams = array('id' => $post_author_id, 'name' => $post_author_name);
$link = e107::getUrl()->create('user/profile/view', $uparams);
$userlink = "<a href='".$link."'><b>".$post_author_name."</b></a>";
$poster = (!$post_author_id ? "<b>".$post_author_name."</b>" : $userlink);
$upload_datestamp = $gen->convert_date($row['upload_datestamp'], "short");
$text .= "
<tr>