Version 4.1.19
This commit is contained in:
1 parent
28bd025b35
commit
2bd5025018
2674 files changed
+233518
-77766
No files matched your search
@@ -2,10 +2,10 @@
|
||||
/**
|
||||
* @brief Group Limits
|
||||
* @author <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a>
|
||||
* @copyright (c) 2001 - SVN_YYYY Invision Power Services, Inc.
|
||||
* @copyright (c) 2001 - 2016 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/legal/standards/
|
||||
* @package IPS Social Suite
|
||||
* @subpackage
|
||||
* @package IPS Community Suite
|
||||
* @subpackage Downloads
|
||||
* @since 21 Nov 2013
|
||||
* @version SVN_VERSION_NUMBER
|
||||
*/
|
||||
@@ -35,9 +35,9 @@ class _Downloads
|
||||
{
|
||||
return array (
|
||||
'exclude' => array(),
|
||||
'lessIsMore' => array( 'idm_throttling', 'idm_wait_period' ),
|
||||
'lessIsMore' => array( 'idm_wait_period' ),
|
||||
'neg1IsBest' => array(),
|
||||
'zeroIsBest' => array(),
|
||||
'zeroIsBest' => array( 'idm_throttling' ),
|
||||
'callback' => array( 'idm_restrictions' => function( $a, $b, $k )
|
||||
{
|
||||
// Decode
|
||||
@@ -78,6 +78,12 @@ class _Downloads
|
||||
// Higher is better
|
||||
foreach ( array( 'daily_bw', 'weekly_bw', 'monthly_bw', 'daily_dl', 'weekly_dl', 'monthly_dl' ) as $k )
|
||||
{
|
||||
if( $a[ $k ] == 0 OR $b[ $k ] == 0 )
|
||||
{
|
||||
$return[ $k ] = 0;
|
||||
continue;
|
||||
}
|
||||
|
||||
$return[ $k ] = ( $a[ $k ] > $b[ $k ] ) ? $a[ $k ] : $b[ $k ];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user