Version 4.5.0
This commit is contained in:
1 parent
1a0c7fd3c2
commit
f79dcf067a
3791 files changed
+248032
-76372
No files matched your search
@@ -11,7 +11,7 @@
|
||||
namespace IPS\core\widgets;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
|
||||
exit;
|
||||
@@ -54,7 +54,7 @@ class _activeUsers extends \IPS\Widget
|
||||
$memberCount = 0;
|
||||
|
||||
/* Build WHERE clause */
|
||||
$parts = parse_url( (string) \IPS\Request::i()->url()->stripQueryString( array( 'page' ) ) );
|
||||
$parts = parse_url( (string) \IPS\Request::i()->url()->setPage() );
|
||||
|
||||
if ( \IPS\Settings::i()->htaccess_mod_rewrite )
|
||||
{
|
||||
@@ -72,12 +72,12 @@ class _activeUsers extends \IPS\Widget
|
||||
unset( $members[ \IPS\Member::loggedIn()->member_id ] );
|
||||
}
|
||||
|
||||
$memberCount = count( $members );
|
||||
$memberCount = \count( $members );
|
||||
|
||||
/* If it's on the sidebar (rather than at the bottom), we want to limit it to 60 so we don't take too much space */
|
||||
if ( $this->orientation === 'vertical' and count( $members ) >= 60 )
|
||||
if ( $this->orientation === 'vertical' and \count( $members ) >= 60 )
|
||||
{
|
||||
$members = array_slice( $members, 0, 60 );
|
||||
$members = \array_slice( $members, 0, 60 );
|
||||
}
|
||||
|
||||
if( \IPS\Member::loggedIn()->member_id )
|
||||
|
||||
Reference in new issue
Block a user