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