Changeset 3072 for trunk


Ignore:
Timestamp:
Jan 13, 2009, 7:53:00 PM (15 years ago)
Author:
rub
Message:

Fix bad $lang.
Remove not necessary information messages on upgrade.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions.php

    r3049 r3072  
    15991599 * Do maintenance on all PWG tables
    16001600 *
    1601  * @return nono
     1601 * @return none
    16021602 */
    16031603function do_maintenance_all_tables()
     
    16481648    array_push(
    16491649          $page['infos'],
    1650           l10n('Optimization completed')
     1650          l10n('Optimizations completed')
    16511651          );
    16521652  }
  • trunk/upgrade.php

    r3049 r3072  
    299299      );
    300300
     301    // Save $page['infos'] in order to restore after maintenance actions
     302    $page['infos_sav'] = $page['infos'];
     303    $page['infos'] = array();
     304
    301305    // c13y_upgrade plugin means "check integrity after upgrade", so it
    302306    // becomes useful just after an upgrade
     
    315319    do_maintenance_all_tables();
    316320
     321    // Restore $page['infos'] in order to hide informations messages from functions calles
     322    // errors messages are not hide
     323    $page['infos'] = $page['infos_sav'];
     324
    317325  }
    318326}
Note: See TracChangeset for help on using the changeset viewer.