Version 5.0.0 beta 10
This commit is contained in:
1 parent
56979f8ee8
commit
264eeb97e0
325 files changed
+6442
-1849
No files matched your search
@@ -109,6 +109,10 @@ class Alert extends Item
|
||||
*/
|
||||
public static string $icon = 'bullhorn';
|
||||
|
||||
CONST REPLY_NOT_REQUIRED = 0;
|
||||
CONST REPLY_OPTIONAL = 1;
|
||||
CONST REPLY_REQUIRED = 2;
|
||||
|
||||
|
||||
/**
|
||||
* Get SEO name
|
||||
@@ -181,7 +185,7 @@ class Alert extends Item
|
||||
throw new InvalidArgumentException( 'alert_no_recipient_selected' );
|
||||
}
|
||||
|
||||
if ( ! $member->canUseMessenger() and Request::i()->alert_reply == 2 )
|
||||
if ( ! $member->canUseMessenger() and Request::i()->alert_reply == static::REPLY_REQUIRED )
|
||||
{
|
||||
throw new InvalidArgumentException( Member::loggedIn()->language()->addToStack( 'alert_member_pm_disabled', NULL, [ 'sprintf' => $member->name ] ) );
|
||||
}
|
||||
@@ -191,7 +195,7 @@ class Alert extends Item
|
||||
|
||||
$form->add( new CheckboxSet( 'alert_recipient_group', ( $alert and $alert->recipient_group ) ? explode( ',', $alert->recipient_group ) : array(), FALSE, array( 'options' => $groups, 'multiple' => TRUE ), function( $groups )
|
||||
{
|
||||
if ( Request::i()->alert_reply == 2 )
|
||||
if ( Request::i()->alert_reply == static::REPLY_REQUIRED )
|
||||
{
|
||||
$module = Module::get( 'core', 'messaging' );
|
||||
$names = [];
|
||||
|
||||
Reference in new issue
Block a user