Version 5.0.0 beta 9
This commit is contained in:
1 parent
214f649f1d
commit
56979f8ee8
202 files changed
+4403
-1123
No files matched your search
@@ -68,6 +68,13 @@ trait ItemTopic
|
||||
*/
|
||||
abstract function getForumId() : int;
|
||||
|
||||
/**
|
||||
* Determine if the topic sync is enabled
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
abstract function isTopicSyncEnabled() : bool;
|
||||
|
||||
/**
|
||||
* Create/Update Topic
|
||||
*
|
||||
@@ -75,6 +82,12 @@ trait ItemTopic
|
||||
*/
|
||||
public function syncTopic(): void
|
||||
{
|
||||
/* If the topic sync is disabled, stop here */
|
||||
if( !$this->isTopicSyncEnabled() )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
/* If this item is pending deletion, do nothing */
|
||||
if( $this->hidden() == -2 )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user