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/include/functions_notification.inc.php

    r19703 r25018  
    207207    while ($row = pwg_db_fetch_assoc($result))
    208208    {
    209       array_push($infos, $row);
     209      $infos[] = $row;
    210210    }
    211211
     
    370370      $line = '<a href="'.$url.'">'.$line.'</a>';
    371371    }
    372     array_push($news, $line);
     372    $news[] = $line;
    373373  }
    374374}
     
    451451  while ($row = pwg_db_fetch_assoc($result))
    452452  {
    453     array_push($dates, $row);
     453    $dates[] = $row;
    454454  }
    455455
     
    470470      while ($row = pwg_db_fetch_assoc($result))
    471471      {
    472         array_push($dates[$i]['elements'], $row);
     472        $dates[$i]['elements'][] = $row;
    473473      }
    474474    }
     
    490490      while ($row = pwg_db_fetch_assoc($result))
    491491      {
    492         array_push($dates[$i]['categories'], $row);
     492        $dates[$i]['categories'][] = $row;
    493493      }
    494494    }
     
    547547  $description .=
    548548        '<li>'
    549         .l10n_dec('%d album updated', '%d albums updated',
    550                   $date_detail['nb_cats'])
     549        .l10n_dec('%d album updated', '%d albums updated', $date_detail['nb_cats'])
    551550        .'</li>';
    552551
     
    558557          .get_cat_display_name_cache($cat['uppercats'])
    559558          .' ('.
    560           l10n_dec('%d new photo',
    561                    '%d new photos', $cat['img_count']).')'
     559          l10n_dec('%d new photo', '%d new photos', $cat['img_count']).')'
    562560          .'</li>';
    563561  }
Note: See TracChangeset for help on using the changeset viewer.