Fix bad $lang.

Remove not necessary information messages on upgrade.

git-svn-id: http://piwigo.org/svn/trunk@3072 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rub 2009-01-13 18:53:00 +00:00
parent 151da2c893
commit 8fec6be07a
2 changed files with 10 additions and 2 deletions

View file

@ -1598,7 +1598,7 @@ DELETE
/** /**
* Do maintenance on all PWG tables * Do maintenance on all PWG tables
* *
* @return nono * @return none
*/ */
function do_maintenance_all_tables() function do_maintenance_all_tables()
{ {
@ -1647,7 +1647,7 @@ function do_maintenance_all_tables()
{ {
array_push( array_push(
$page['infos'], $page['infos'],
l10n('Optimization completed') l10n('Optimizations completed')
); );
} }
else else

View file

@ -298,6 +298,10 @@ if (isset($_POST['submit']) and check_upgrade())
l10n('perform a maintenance check') l10n('perform a maintenance check')
); );
// Save $page['infos'] in order to restore after maintenance actions
$page['infos_sav'] = $page['infos'];
$page['infos'] = array();
// c13y_upgrade plugin means "check integrity after upgrade", so it // c13y_upgrade plugin means "check integrity after upgrade", so it
// becomes useful just after an upgrade // becomes useful just after an upgrade
$query = ' $query = '
@ -314,6 +318,10 @@ REPLACE INTO '.PLUGINS_TABLE.'
// Tables Maintenance // Tables Maintenance
do_maintenance_all_tables(); do_maintenance_all_tables();
// Restore $page['infos'] in order to hide informations messages from functions calles
// errors messages are not hide
$page['infos'] = $page['infos_sav'];
} }
} }