Changeset 25018 for trunk/upgrade.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/upgrade.php

    r25005 r25018  
    7474    if (preg_match('/^'.PREFIX_TABLE.'/', $row[0]))
    7575    {
    76       array_push($tables, $row[0]);
     76      $tables[] = $row[0];
    7777    }
    7878  }
     
    101101    while ($row = pwg_db_fetch_row($result))
    102102    {
    103       array_push($columns_of[$table], $row[0]);
     103      $columns_of[$table][] = $row[0];
    104104    }
    105105  }
     
    390390      if (!@file_put_contents($config_file, $config_file_contents))
    391391      {
    392         array_push(
    393           $page['infos'],
    394           sprintf(
    395             l10n('In <i>%s</i>, before <b>?></b>, insert:'),
    396             PWG_LOCAL_DIR.'config/database.inc.php'
    397             )
    398           .'<p><textarea rows="4" cols="40">'
    399           .implode("\r\n" , $mysql_changes).'</textarea></p>'
    400           );
     392        $page['infos'][] = l10n(
     393          'In <i>%s</i>, before <b>?></b>, insert:',
     394          PWG_LOCAL_DIR.'config/database.inc.php'
     395          )
     396        .'<p><textarea rows="4" cols="40">'
     397        .implode("\r\n" , $mysql_changes).'</textarea></p>';
    401398      }
    402399    }
     
    431428      );
    432429
    433     array_push($page['infos'],
    434       l10n('Perform a maintenance check in [Administration>Tools>Maintenance] if you encounter any problem.')
    435       );
     430    $page['infos'][] = l10n('Perform a maintenance check in [Administration>Tools>Maintenance] if you encounter any problem.');
    436431
    437432    // Save $page['infos'] in order to restore after maintenance actions
Note: See TracChangeset for help on using the changeset viewer.