1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-31 10:01:56 +02:00

Some forum code cleanup

This commit is contained in:
Cameron
2021-01-21 13:04:54 -08:00
parent 9f7d3d2c78
commit 594cddae6e
10 changed files with 981 additions and 2780 deletions

View File

@@ -86,7 +86,7 @@
$sc = e107::getScBatch('viewforum', 'forum');
$forumId = (int) $_REQUEST['id'];
$forumId = (int) varset($_REQUEST['id']);
if(!$forumId && e_QUERY) // BC Fix for old links.
{
@@ -98,10 +98,8 @@
if(!$forum->checkPerm($forumId, 'view'))
{
// header('Location:'.e107::getUrl()->create('forum/forum/main'));
$url = e107::url('forum', 'index', null, ['mode'=>'full']);
/*
if(E107_DEBUG_LEVEL > 0)
{
print_a($_REQUEST);
@@ -110,7 +108,7 @@
echo " forumId: " . $forumId;
exit;
}
*/
e107::getRedirect()->go($url);