Ignore:
Timestamp:
Oct 19, 2013, 7:43:04 PM (10 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/identification.php

    r20609 r25018  
    4040  if ( is_a_guest() )
    4141  {
    42     array_push($page['errors'], l10n('You are not authorized to access the requested page'));
     42    $page['errors'][] = l10n('You are not authorized to access the requested page');
    4343  }
    4444}
     
    4848  if (!isset($_COOKIE[session_name()]))
    4949  {
    50     array_push(
    51       $page['errors'],
    52       l10n('Cookies are blocked or not supported by your browser. You must enable cookies to connect.')
    53       );
     50    $page['errors'][] = l10n('Cookies are blocked or not supported by your browser. You must enable cookies to connect.');
    5451  }
    5552  else
     
    6966    else
    7067    {
    71       array_push($page['errors'], l10n('Invalid password!') );
     68      $page['errors'][] = l10n('Invalid password!');
    7269    }
    7370  }
Note: See TracChangeset for help on using the changeset viewer.