mirror of
https://github.com/e107inc/e107.git
synced 2025-01-16 20:28:28 +01:00
Fixed #163: Call to undefined method eUrl::getUrl()
This commit is contained in:
parent
95be25d78a
commit
1cefa38d66
8
top.php
8
top.php
@ -90,20 +90,20 @@ if ($action == 'active')
|
||||
{
|
||||
if ($row['user_name'])
|
||||
{
|
||||
$POSTER = "<a href='".$e107->url->create('user/profile/view', 'main', "name={$row['user_name']}&id={$row['thread_user']}")."'>{$row['user_name']}</a>";
|
||||
$POSTER = "<a href='".e107::getUrl()->create('user/profile/view', "name={$row['user_name']}&id={$row['thread_user']}")."'>{$row['user_name']}</a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
$POSTER = $row['thread_user_anon'];
|
||||
}
|
||||
|
||||
$LINKTOTHREAD = $e107->url->getUrl('forum', 'thread', "func=view&id={$row['thread_id']}");
|
||||
$LINKTOFORUM = $e107->url->getUrl('forum', 'forum', "func=view&id={$row['thread_forum_id']}");
|
||||
$LINKTOTHREAD = e107::getUrl()->create('forum/thread/view', array('id' =>$row['thread_id'])); //$e107->url->getUrl('forum', 'thread', "func=view&id={$row['thread_id']}");
|
||||
$LINKTOFORUM = e107::getUrl()->create('forum/forum/view', array('id' => $row['thread_forum_id'])); //$e107->url->getUrl('forum', 'forum', "func=view&id={$row['thread_forum_id']}");
|
||||
|
||||
$lastpost_datestamp = $gen->convert_date($row['thread_lastpost'], 'forum');
|
||||
if ($row['user_last'])
|
||||
{
|
||||
$LASTPOST = "<a href='".$e107->url->create('user/profile/view', 'main', "name={$row['user_last']}&id={$row['thread_lastuser']}")."'>{$row['user_last']}</a><br />".$lastpost_datestamp;
|
||||
$LASTPOST = "<a href='".$e107->url->create('user/profile/view', "name={$row['user_last']}&id={$row['thread_lastuser']}")."'>{$row['user_last']}</a><br />".$lastpost_datestamp;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -219,9 +219,9 @@ elseif ($action == 'forums')
|
||||
$vars->USERPOSTS_FORUM_TOPIC_PRE = UP_LAN_15.': ';
|
||||
}
|
||||
$vars->USERPOSTS_FORUM_ICON = "<img src='".e_PLUGIN."forum/images/".IMODE."/new_small.png' alt='' />";
|
||||
$vars->USERPOSTS_FORUM_TOPIC_HREF_PRE = "<a href='".$e107->url->getUrl('forum', 'thread', "func=post&id={$row['post_id']}")."'>";
|
||||
$vars->USERPOSTS_FORUM_TOPIC = $tp->toHTML($row['thread_name'], true, 'USER_BODY', $id);
|
||||
$vars->USERPOSTS_FORUM_NAME_HREF_PRE = "<a href='".$e107->url->getUrl('forum', 'forum', "func=view&id={$row['post_forum']}")."'>";
|
||||
$vars->USERPOSTS_FORUM_TOPIC_HREF_PRE = "<a href='".e107::getUrl()->create('forum/thread/post', array('id' =>$row['post_id']))."'>"; //$e107->url->getUrl('forum', 'thread', "func=post&id={$row['post_id']}")
|
||||
$vars->USERPOSTS_FORUM_TOPIC = $tp->toHTML($row['thread_name'], true, 'USER_BODY', $id);
|
||||
$vars->USERPOSTS_FORUM_NAME_HREF_PRE = "<a href='".e107::getUrl()->create('forum/forum/view', array('id' => $row['forum_id']))."'>"; //$e107->url->getUrl('forum', 'forum', "func=view&id={$row['post_forum']}")
|
||||
$vars->USERPOSTS_FORUM_NAME = $tp->toHTML($row['forum_name'], true, 'USER_BODY', $id);
|
||||
$vars->USERPOSTS_FORUM_THREAD = $tp->toHTML($row['post_entry'], true, 'USER_BODY', $id);
|
||||
$vars->USERPOSTS_FORUM_DATESTAMP = UP_LAN_11." ".$datestamp;
|
||||
|
Loading…
x
Reference in New Issue
Block a user