aboutsummaryrefslogtreecommitdiffstats
path: root/upgrade.php
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2009-01-13 18:53:00 +0000
committerrub <rub@piwigo.org>2009-01-13 18:53:00 +0000
commit8fec6be07aa7ae9e3091549d9d0c5fb54117c421 (patch)
tree56eea57376b48cdfeffae231b738491e2cb9f7c1 /upgrade.php
parent151da2c893bcb42d446645bd4a5844f9064658b9 (diff)
Fix bad $lang.
Remove not necessary information messages on upgrade. git-svn-id: http://piwigo.org/svn/trunk@3072 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'upgrade.php')
-rw-r--r--upgrade.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/upgrade.php b/upgrade.php
index 1a0a7f4b0..daee09113 100644
--- a/upgrade.php
+++ b/upgrade.php
@@ -298,6 +298,10 @@ if (isset($_POST['submit']) and check_upgrade())
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
// becomes useful just after an upgrade
$query = '
@@ -314,6 +318,10 @@ REPLACE INTO '.PLUGINS_TABLE.'
// Tables Maintenance
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'];
+
}
}