Changeset 25018 for trunk/register.php


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

    r20609 r25018  
    4545  {
    4646                set_status_header(403);
    47     array_push($page['errors'], 'Invalid/expired form key');
     47    $page['errors'][] = l10n('Invalid/expired form key');
    4848  }
    4949
    5050  if ($_POST['password'] != $_POST['password_conf'])
    5151  {
    52     array_push($page['errors'], l10n('please enter your password again'));
     52    $page['errors'][] = l10n('please enter your password again');
    5353  }
    5454
Note: See TracChangeset for help on using the changeset viewer.