Version 4.7.23
This commit is contained in:
1 parent
7124a02564
commit
25ddeb65d6
1791 files changed
+76990
-44452
No files matched your search
@@ -80,7 +80,12 @@ class _Alert extends \IPS\Content\Item
|
||||
*/
|
||||
public static $icon = 'bullhorn';
|
||||
|
||||
|
||||
CONST REPLY_NOT_REQUIRED = 0;
|
||||
CONST REPLY_OPTIONAL = 1;
|
||||
CONST REPLY_REQUIRED = 2;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get SEO name
|
||||
*
|
||||
@@ -159,7 +164,7 @@ class _Alert extends \IPS\Content\Item
|
||||
throw new \InvalidArgumentException( 'alert_no_recipient_selected' );
|
||||
}
|
||||
|
||||
if ( ! $member->canUseMessenger() and \IPS\Request::i()->alert_reply == 2 )
|
||||
if ( ! $member->canUseMessenger() and \IPS\Request::i()->alert_reply == static::REPLY_REQUIRED )
|
||||
{
|
||||
throw new \InvalidArgumentException( \IPS\Member::loggedIn()->language()->addToStack( 'alert_member_pm_disabled', NULL, [ 'sprintf' => $member->name ] ) );
|
||||
}
|
||||
@@ -169,7 +174,7 @@ class _Alert extends \IPS\Content\Item
|
||||
|
||||
$form->add( new \IPS\Helpers\Form\CheckboxSet( 'alert_recipient_group', ( $alert and $alert->recipient_group ) ? explode( ',', $alert->recipient_group ) : array(), FALSE, array( 'options' => $groups, 'multiple' => TRUE ), function( $groups )
|
||||
{
|
||||
if ( \IPS\Request::i()->alert_reply == 2 )
|
||||
if ( \IPS\Request::i()->alert_reply == static::REPLY_REQUIRED )
|
||||
{
|
||||
$module = \IPS\Application\Module::get( 'core', 'messaging' );
|
||||
$names = [];
|
||||
|
||||
Reference in new issue
Block a user