1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-19 12:51:52 +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

@@ -128,7 +128,7 @@ class forum_post_handler
if (!e_QUERY || empty($_GET['id']))
{
$url = e107::url('forum','index',null,'full');
$url = e107::url('forum','index',null,['mode'=>'full']);
$this->redirect($url);
// header('Location:'.e107::getUrl()->create('forum/forum/main', array(), 'full=1&encode=0'));
exit;
@@ -183,7 +183,7 @@ class forum_post_handler
break;
default:
$url = e107::url('forum','index',null,'full');
$url = e107::url('forum','index',null,['mode'=>'full']);
$this->redirect($url);
// header("Location:".e107::getUrl()->create('forum/forum/main', array(), 'full=1&encode=0'));
exit;
@@ -1756,7 +1756,7 @@ class forum_post_handler
require_once(HEADERF);
new forum_post_handler;
require_once(FOOTERF);
exit;