mirror of
https://github.com/e107inc/e107.git
synced 2025-08-11 17:14:42 +02:00
Fixes #1001 - forum thread editing. Also pagination and redirection fixes. "Move Thread" reworked and integrated into forum_post.php
This commit is contained in:
@@ -247,8 +247,10 @@ if ($thread->pages > 1)
|
||||
if(!$thread->page) $thread->page = 1;
|
||||
// $url = rawurlencode(e107::getUrl()->create('forum/thread/view', array('name' => $thread->threadInfo['thread_name'], 'id' => $thread->threadId, 'page' => '[FROM]')));
|
||||
|
||||
$url = e_REQUEST_SELF."?p=[FROM]"; // SEF URL Friendly.
|
||||
$parms = "total={$thread->pages}&type=page¤t={$thread->page}&url=".$url."&caption=off&tmpl=default&navcount=4&glyphs=1";
|
||||
// $url = e_REQUEST_SELF."?p=[FROM]"; // SEF URL Friendly.
|
||||
$url = e107::url('forum','topic', $thread->threadInfo)."&p=[FROM]";
|
||||
|
||||
$parms = "total={$thread->pages}&type=page¤t={$thread->page}&url=".urlencode($url)."&caption=off&tmpl=default&navcount=4&glyphs=1";
|
||||
|
||||
//XXX FIXME - pull-down template not practical here. Can we force another?
|
||||
|
||||
@@ -758,6 +760,8 @@ class e107ForumThread
|
||||
$this->message = LAN_FORUM_2012;
|
||||
break;
|
||||
|
||||
|
||||
// TODO Move to form_post.php
|
||||
case 'report':
|
||||
$threadId = (int)$_GET['id'];
|
||||
$postId = (int)$_GET['post'];
|
||||
|
Reference in New Issue
Block a user