Version 4.6.0
This commit is contained in:
1 parent
f79dcf067a
commit
517a5e1f70
2036 files changed
+110041
-26162
No files matched your search
@@ -122,8 +122,14 @@ trait ItemTopic
|
||||
$title = $this->getTopicTitle();
|
||||
\IPS\Member::loggedIn()->language()->parseOutputForDisplay( $title );
|
||||
$topic->title = $title;
|
||||
$topic->topic_archive_status = \IPS\forums\Topic::ARCHIVE_EXCLUDE;
|
||||
$topic->topic_archive_status = \IPS\forums\Topic::ARCHIVE_EXCLUDE;
|
||||
$topic->save();
|
||||
|
||||
if( $this->isAnonymous() )
|
||||
{
|
||||
$topic->setAnonymous( TRUE, $this->author );
|
||||
}
|
||||
|
||||
$topic->markRead( $this->author() );
|
||||
if ( \IPS\Settings::i()->tags_enabled )
|
||||
{
|
||||
@@ -134,10 +140,22 @@ trait ItemTopic
|
||||
$content = $this->getTopicContent();
|
||||
\IPS\Member::loggedIn()->language()->parseOutputForDisplay( $content );
|
||||
$post = \IPS\forums\Topic\Post::create( $topic, $content, TRUE, NULL, NULL, $this->author() );
|
||||
|
||||
if( $this->isAnonymous() )
|
||||
{
|
||||
$post->setAnonymous( TRUE, $this->author );
|
||||
}
|
||||
|
||||
$topic->topic_firstpost = $post->pid;
|
||||
$topic->save();
|
||||
\IPS\Content\Search\Index::i()->index( $post );
|
||||
|
||||
/* Send notifications */
|
||||
if ( !$topic->isFutureDate() AND !$topic->hidden() )
|
||||
{
|
||||
$topic->sendNotifications();
|
||||
}
|
||||
|
||||
/* Update file */
|
||||
$this->$column = $topic->tid;
|
||||
$this->save();
|
||||
|
||||
Reference in new issue
Block a user