Version 4.7.6
This commit is contained in:
1 parent
8ba7d43898
commit
7b7404e741
1085 files changed
+30590
-7837
No files matched your search
@@ -431,6 +431,8 @@ class _Warning extends \IPS\Content\Item
|
||||
/* Moderator log */
|
||||
\IPS\Session::i()->modLog( 'modlog__action_warn_user', array( $member->name => FALSE ) );
|
||||
|
||||
/* Webhook */
|
||||
\IPS\Api\Webhook::fire( 'member_warned', $this );
|
||||
parent::processAfterCreate( $comment, $values );
|
||||
}
|
||||
|
||||
@@ -603,7 +605,7 @@ class _Warning extends \IPS\Content\Item
|
||||
|
||||
if ( $values[ 'warn_' . $f ] instanceof \IPS\DateTime )
|
||||
{
|
||||
$difference = \IPS\DateTime::create()->diff( $values[ 'warn_' . $f ] );
|
||||
$difference = \IPS\DateTime::create()->setTimezone( $values[ 'warn_' . $f ]->getTimezone() )->diff( $values[ 'warn_' . $f ] );
|
||||
$period = 'P';
|
||||
foreach ( array( 'y' => 'Y', 'm' => 'M', 'd' => 'D' ) as $k => $v )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user