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
@@ -11,8 +11,6 @@
|
||||
|
||||
namespace IPS\blog\extensions\core\GroupForm;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
|
||||
use IPS\Extensions\GroupFormAbstract;
|
||||
use IPS\Helpers\Form;
|
||||
use IPS\Helpers\Form\Number;
|
||||
@@ -22,6 +20,7 @@ use IPS\Member\Group;
|
||||
use IPS\Settings;
|
||||
use function defined;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
header( ( $_SERVER['SERVER_PROTOCOL'] ?? 'HTTP/1.0' ) . ' 403 Forbidden' );
|
||||
@@ -52,7 +51,7 @@ class Blog extends GroupFormAbstract
|
||||
}
|
||||
|
||||
$form->add(new YesNo('g_blog_allowcomment', $group->g_blog_allowcomment));
|
||||
if( $group->g_id == Settings::i()->guest_group AND Settings::i()->post_before_registering )
|
||||
if( $group->g_id == Settings::i()->guest_group AND Settings::i()->post_before_registering and Settings::i()->bot_antispam_type !== 'none' )
|
||||
{
|
||||
Member::loggedIn()->language()->words['g_blog_allowcomment_desc'] = Member::loggedIn()->language()->addToStack('g_blog_allowcomment_guestreg');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user