Version 4.7.13
This commit is contained in:
1 parent
fd22d99e69
commit
7124a02564
954 files changed
+29277
-59308
No files matched your search
@@ -32,7 +32,6 @@ class _pendingActions extends \IPS\Widget
|
||||
'withdrawals' => 'pending_widthdrawals',
|
||||
'support' => 'open_support_requests',
|
||||
'ads' => 'pending_advertisements',
|
||||
'hosting' => 'hosting_errors',
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -126,17 +125,6 @@ class _pendingActions extends \IPS\Widget
|
||||
}
|
||||
}
|
||||
|
||||
/* And hosting errors */
|
||||
$hostingErrors = NULL;
|
||||
if ( \in_array( 'hosting', $this->configuration['pendingActions_stuff'] ) and \IPS\Member::loggedIn()->hasAcpRestriction( 'core', 'hosting', 'errors_manage' ) )
|
||||
{
|
||||
$hostingErrors = \IPS\Db::i()->select( 'COUNT(*)', 'nexus_hosting_errors' )->first();
|
||||
if ( !$hostingErrors and !\IPS\Db::i()->select( 'COUNT(*)', 'nexus_hosting_servers' )->first() )
|
||||
{
|
||||
$hostingErrors = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
/* Withdrawals will only be if enabled */
|
||||
$pendingWithdrawals = NULL;
|
||||
if ( \in_array( 'withdrawals', $this->configuration['pendingActions_stuff'] ) and \IPS\Settings::i()->nexus_payout and \IPS\Member::loggedIn()->hasAcpRestriction( 'nexus', 'payments', 'payouts_manage' ) )
|
||||
@@ -152,6 +140,6 @@ class _pendingActions extends \IPS\Widget
|
||||
$openSupportRequests = $myStream->count( \IPS\Member::loggedIn() );
|
||||
}
|
||||
|
||||
return $this->output( $pendingTransactions, $pendingShipments, $pendingWithdrawals, $openSupportRequests, $pendingAdvertisements, $hostingErrors );
|
||||
return $this->output( $pendingTransactions, $pendingShipments, $pendingWithdrawals, $openSupportRequests, $pendingAdvertisements );
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user