Version 5.0.0 beta 9

This commit is contained in:
Neo committed 2025-12-19 17:47:00 -08:00
1 parent 214f649f1d
commit 56979f8ee8
202 files changed
+4403 -1123

No files matched your search

+9 -3
View File
@@ -2241,7 +2241,8 @@ abstract class Model extends ActiveRecord
$groupsToCheck = $member->groups;
/* Work out which to use taking Post Before Registering into consideration and return */
$considerPostBeforeRegistering = ( $considerPostBeforeRegistering and Settings::i()->post_before_registering and Login::registrationType() != 'disabled' );
$considerPostBeforeRegistering = ( $considerPostBeforeRegistering and Settings::i()->post_before_registering
and Login::registrationType() != 'disabled' and Settings::i()->bot_antispam_type !== 'none' );
if ( !$member->member_id and $considerPostBeforeRegistering )
{
$groupsToCheck[] = Settings::i()->member_group;
@@ -2651,7 +2652,8 @@ abstract class Model extends ActiveRecord
$relevantPermissionArray = array_filter( explode( ',', $relevantPermissionString ) );
/* Work out which to use taking Post Before Registering into consideration and return */
$considerPostBeforeRegistering = ( $considerPostBeforeRegistering and Settings::i()->post_before_registering and Login::registrationType() != 'disabled' );
$considerPostBeforeRegistering = ( $considerPostBeforeRegistering and Settings::i()->post_before_registering
and Login::registrationType() != 'disabled' and Settings::i()->bot_antispam_type !== 'none' );
if( $member instanceof Group )
{
if ( $considerPostBeforeRegistering and $member->g_id == Settings::i()->guest_group )
@@ -3669,7 +3671,11 @@ abstract class Model extends ActiveRecord
*/
public function saveForm( array $values ): mixed
{
$values = UiExtension::i()->run( $this, 'processForm', [ $values ] );
/* Loop through each extension and update the values */
foreach( UiExtension::i()->getObjectExtensions( $this ) as $extension )
{
$values = $extension->processForm( $this, $values );
}
foreach ( $values as $k => $v )
{