1
0
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:
Cameron
2015-05-09 13:22:27 -07:00
parent cec9f33168
commit 3f49076a2b
8 changed files with 298 additions and 53 deletions

View File

@@ -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&current={$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&current={$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'];