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

    r19703 r25018  
    6161  {
    6262    case 'moderate':
    63       array_push($page['infos'], l10n('An administrator must authorize your comment before it is visible.') );
     63      $page['infos'][] = l10n('An administrator must authorize your comment before it is visible.');
    6464    case 'validate':
    65       array_push($page['infos'], l10n('Your comment has been registered'));
     65      $page['infos'][] = l10n('Your comment has been registered');
    6666      break;
    6767    case 'reject':
    6868      set_status_header(403);
    69       array_push($page['errors'], l10n('Your comment has NOT been registered because it did not pass the validation rules') );
     69      $page['errors'][] = l10n('Your comment has NOT been registered because it did not pass the validation rules');
    7070      break;
    7171    default:
Note: See TracChangeset for help on using the changeset viewer.