Version 5.0.0 beta 10

This commit is contained in:
Neo committed 2025-12-19 17:53:48 -08:00
1 parent 56979f8ee8
commit 264eeb97e0
325 files changed
+6442 -1849

No files matched your search

+14 -1
View File
@@ -825,12 +825,22 @@ class Club extends ActiveRecord implements Embeddable
if( $new and $this->approved )
{
Webhook::fire( 'club_created', $this );
}
else if( !$new AND isset( $this->changed['approved'] ) )
{
$this->onApprove();
}
if( $new )
{
Event::fire( 'onCreate', $this );
}
else
{
Event::fire( 'onEdit', $this );
}
return NULL;
}
@@ -1821,6 +1831,8 @@ class Club extends ActiveRecord implements Embeddable
}
$this->coverPhoto( FALSE )->delete();
Event::fire( 'onDelete', $this );
}
/**
@@ -1833,7 +1845,7 @@ class Club extends ActiveRecord implements Embeddable
{
foreach( Db::i()->select( 'node_class', 'core_clubs_node_map', NULL, NULL, NULL, 'node_class' ) as $class )
{
if ( isset( $class::$contentItemClass ) )
if ( class_exists( $class ) and isset( $class::$contentItemClass ) )
{
$contentItemClass = $class::$contentItemClass;
@@ -2296,6 +2308,7 @@ class Club extends ActiveRecord implements Embeddable
public function onApprove() : void
{
Webhook::fire( 'club_created', $this );
Event::fire( 'onCreate', $this );
$this->owner->achievementAction( 'core', 'NewClub', $this );
try