Open Jimmi08 opened 2 years ago
Top forum topics are displayed but links to topic and forum are wrong
$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']}");
plus pagination is not working (not displayed) there is this legacy code:
$ftotal = $sql->count('forum_thread', '(*)', 'WHEREthread_parent= 0');
$ftotal = $sql->count('forum_thread', '(*)', 'WHERE
= 0');
Entire /top.php needs a pretty major upgrade, for PHP compatibility as well
Not needed anymore. It can wait for official/major update.
Bug Description
Top forum topics are displayed but links to topic and forum are wrong
How to Reproduce
plus pagination is not working (not displayed) there is this legacy code:
$ftotal = $sql->count('forum_thread', '(*)', 'WHERE
thread_parent= 0');