Version 5.0.0 beta 7

This commit is contained in:
Neo committed 2025-12-19 17:18:38 -08:00
1 parent fa2a720105
commit 54d5dcd0a0
156 files changed
+4337 -2995

No files matched your search

+3 -11
View File
@@ -12,6 +12,7 @@ namespace IPS\Content;
/* To prevent PHP errors (extending class does not exist) revealing path */
use BadMethodCallException;
use Exception;
use IPS\Application;
use IPS\Content\Search\Index;
@@ -21,7 +22,6 @@ use IPS\forums\Topic;
use IPS\forums\Topic\Post;
use IPS\IPS;
use IPS\Member;
use IPS\Settings;
use OutOfRangeException;
use function defined;
@@ -93,10 +93,6 @@ trait ItemTopic
$title = $this->getTopicTitle();
Member::loggedIn()->language()->parseOutputForDisplay( $title );
$topic->title = $title;
if ( Settings::i()->tags_enabled )
{
$topic->setTags( $this->prefix() ? array_merge( $this->tags(), array( 'prefix' => $this->prefix() ) ) : $this->tags() );
}
$topic->save();
$firstPost = $topic->comments( 1 );
@@ -143,14 +139,10 @@ trait ItemTopic
{
$topic->setAnonymous( TRUE, $this->author );
}
catch( \BadMethodCallException ){}
catch( BadMethodCallException ){}
}
$topic->markRead( $this->author() );
if ( Settings::i()->tags_enabled )
{
$topic->setTags( $this->prefix() ? array_merge( $this->tags(), array( 'prefix' => $this->prefix() ) ) : $this->tags() );
}
/* Create post */
$content = $this->getTopicContent();
@@ -163,7 +155,7 @@ trait ItemTopic
{
$post->setAnonymous( TRUE, $this->author );
}
catch( \BadMethodCallException ){}
catch( BadMethodCallException ){}
}
$topic->topic_firstpost = $post->pid;