summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-12-20 11:57:20 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-12-20 11:57:20 +0000
commitfc8b22c615c119402e49d8f41cec20ea9809a0c1 (patch)
tree659d344ea5d78994396b4432b792d1c5755aad65
parentfdce0564d6052869068574fac768b1aa23055e12 (diff)
downloadbrdo-fc8b22c615c119402e49d8f41cec20ea9809a0c1.tar.gz
brdo-fc8b22c615c119402e49d8f41cec20ea9809a0c1.tar.bz2
#196630 by yched: postpone warning message display until batch finished, so messages are not forgotten on non-JS batches
-rw-r--r--includes/batch.inc2
-rw-r--r--update.php4
2 files changed, 4 insertions, 2 deletions
diff --git a/includes/batch.inc b/includes/batch.inc
index cced0b426..cd2127f0b 100644
--- a/includes/batch.inc
+++ b/includes/batch.inc
@@ -133,7 +133,7 @@ function _batch_progress_page_nojs() {
// followed by the error message.
ob_start();
$fallback = $current_set['error_message'] .'<br/>'. $batch['error_message'];
- $fallback = theme('maintenance_page', $fallback, FALSE);
+ $fallback = theme('maintenance_page', $fallback, FALSE, FALSE);
// We strip the end of the page using a marker in the template, so any
// additional HTML output by PHP shows up inside the page rather than
diff --git a/update.php b/update.php
index 6ade05465..4c9a18290 100644
--- a/update.php
+++ b/update.php
@@ -723,5 +723,7 @@ else {
$output = update_access_denied_page();
}
if (isset($output) && $output) {
- print theme('update_page', $output);
+ // We defer the display of messages until all updates are done.
+ $progress_page = ($batch = batch_get()) && isset($batch['running']);
+ print theme('update_page', $output, !$progress_page);
}