mirror of
https://github.com/e107inc/e107.git
synced 2025-08-11 00:54:49 +02:00
fixes #3377 Enabled "preview" button on forum post edit
disabled subject if edited post is not the first post of the thread
This commit is contained in:
@@ -155,6 +155,7 @@ class forum_post_handler
|
||||
$forumInfo = $this->forumObj->forumGet($postInfo['post_forum']);
|
||||
$data = array_merge($postInfo ,$forumInfo);
|
||||
$data['action'] = $this->action;
|
||||
$data['initial_post'] = $this->forumObj->threadDetermineInitialPost($this->post);
|
||||
$this->setPageTitle($data);
|
||||
return $data;
|
||||
break;
|
||||
@@ -1026,6 +1027,11 @@ class forum_post_handler
|
||||
$tsubject = $tp->post_toHTML($_POST['subject'], true);
|
||||
$tpost = $tp->post_toHTML($_POST['post'], true);
|
||||
|
||||
if (empty($tsubject))
|
||||
{
|
||||
$tsubject = $this->data['thread_name'];
|
||||
}
|
||||
|
||||
if ($_POST['poll_title'] != '' && check_class($this->forumObj->prefs->get('poll')))
|
||||
{
|
||||
require_once(e_PLUGIN."poll/poll_class.php");
|
||||
|
Reference in New Issue
Block a user