Ignore:
Timestamp:
Oct 19, 2013, 7:43:04 PM (11 years ago)
Author:
mistic100
Message:

remove all array_push (50% slower than []) + some changes missing for feature:2978

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/photos_add_direct_prepare.inc.php

    r23944 r25018  
    210210if (!empty($error_message))
    211211{
    212   array_push($setup_errors, $error_message);
     212  $setup_errors[] = $error_message;
    213213}
    214214
    215215if (!function_exists('gd_info'))
    216216{
    217   array_push($setup_errors, l10n('GD library is missing'));
     217  $setup_errors[] = l10n('GD library is missing');
    218218}
    219219
     
    236236  if ($conf['use_exif'] and !function_exists('read_exif_data'))
    237237  {
    238     array_push(
    239       $setup_warnings,
    240       l10n('Exif extension not available, admin should disable exif use')
    241       );
     238    $setup_warnings[] = l10n('Exif extension not available, admin should disable exif use');
    242239  }
    243240
    244241  if (get_ini_size('upload_max_filesize') > get_ini_size('post_max_size'))
    245242  {
    246     array_push(
    247       $setup_warnings,
    248       sprintf(
    249         l10n('In your php.ini file, the upload_max_filesize (%sB) is bigger than post_max_size (%sB), you should change this setting'),
    250         get_ini_size('upload_max_filesize', false),
    251         get_ini_size('post_max_size', false)
    252         )
     243    $setup_warnings[] = l10n(
     244      'In your php.ini file, the upload_max_filesize (%sB) is bigger than post_max_size (%sB), you should change this setting',
     245      get_ini_size('upload_max_filesize', false),
     246      get_ini_size('post_max_size', false)
    253247      );
    254248  }
Note: See TracChangeset for help on using the changeset viewer.