mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
* sizeof is alias of count
This commit is contained in:
parent
b1fd1263f1
commit
5f22ab0361
@ -17,7 +17,7 @@ else
|
||||
{
|
||||
// detect locale
|
||||
$locale_s = get_browser_languages();
|
||||
if(!sizeof($locale_s))
|
||||
if(!count($locale_s))
|
||||
$locale_ = 'en';
|
||||
else
|
||||
{
|
||||
|
@ -95,7 +95,7 @@ class Items_Images
|
||||
if($id > self::$lastItem)
|
||||
return false;
|
||||
|
||||
//ini_set('max_execution_time', 300);
|
||||
//ini_set('max_execution_time', 300);
|
||||
// parse info from dat
|
||||
for( $i = 100; $i <= $id; $i++ ) {
|
||||
while( ( $byte = HEX_PREFIX.bin2hex( fgetc( self::$dat ) ) ) != 0xFF ) {
|
||||
@ -245,7 +245,7 @@ class Items_Images
|
||||
/*
|
||||
if ( $nostand )
|
||||
{
|
||||
for( $i = 0; $i < sizeof( $sprites ) / 4; $i++ )
|
||||
for( $i = 0; $i < count( $sprites ) / 4; $i++ )
|
||||
{
|
||||
$sprites = array_merge( (array) $sprites, array_reverse( array_slice( $sprites, $i * 4, 4 ) ) );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user