1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-25 15:31:41 +02:00

Forum: Fixes #1079 - broken 'move' url.

This commit is contained in:
Cameron
2015-06-26 10:26:47 -07:00
parent 1073171387
commit 84485c50da
6 changed files with 31 additions and 9 deletions

View File

@@ -132,10 +132,8 @@ class forum_post_handler
break;
case 'edit':
case 'move':
case "quote":
case "report":
$postInfo = $this->forumObj->postGet($this->post, 'post');
$forumInfo = $this->forumObj->forumGet($postInfo['post_forum']);
$data = array_merge($postInfo ,$forumInfo);
@@ -144,6 +142,15 @@ class forum_post_handler
return $data;
break;
case 'move':
$thread = $this->forumObj->threadGet($this->id, true);
$extra = $this->forumObj->postGet($this->id,0,1); // get first post.
$data = array_merge($thread,$extra[0]);
$data['action'] = $this->action;
$this->setPageTitle($data);
return $data;
break;
default:
$url = e107::url('forum','index',null,'full');
$this->redirect($url);