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/permalinks.php

    r19703 r25018  
    6060      elseif (isset($default_field) and !isset($_GET[$get_param]) )
    6161      {
    62         array_push($ret, $field);
     62        $ret[] = $field;
    6363        $disp = '<em>'.$disp.'</em>';
    6464      }
     
    6666    else
    6767    {
    68       array_push($ret, $field);
     68      $ret[] = $field;
    6969      $disp = '<em>'.$disp.'</em>';
    7070    }
     
    101101  $result = pwg_query($query);
    102102  if (pwg_db_changes($result)==0)
    103     array_push($page['errors'], l10n('Cannot delete the old permalink !'));
     103  {
     104    $page['errors'][] = l10n('Cannot delete the old permalink !');
     105  }
    104106}
    105107
Note: See TracChangeset for help on using the changeset viewer.