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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user