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

    r19703 r25018  
    5353  if (!is_dir($this->site_url))
    5454  {
    55     array_push(
    56       $errors,
    57       array(
    58         'path' => $this->site_url,
    59         'type' => 'PWG-ERROR-NO-FS'
    60         )
     55    $errors[] = array(
     56      'path' => $this->site_url,
     57      'type' => 'PWG-ERROR-NO-FS'
    6158      );
    6259
     
    109106        }
    110107      }
    111       elseif (is_dir($path.'/'.$node)
     108      else if (is_dir($path.'/'.$node)
    112109               and $node != 'pwg_high'
    113110               and $node != 'pwg_representative'
    114111               and $node != 'thumbnail' )
    115112      {
    116         array_push($subdirs, $node);
     113        $subdirs[] = $node;
    117114      }
    118115    } //end while readdir
Note: See TracChangeset for help on using the changeset viewer.