summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
Diffstat (limited to 'install.php')
-rw-r--r--install.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/install.php b/install.php
index 2a254abcc..47661db96 100644
--- a/install.php
+++ b/install.php
@@ -616,7 +616,6 @@ function install_missing_modules_error($profile) {
*/
function install_tasks($profile, $task) {
global $base_url, $install_locale;
- $output = '';
// Bootstrap newly installed Drupal, while preserving existing messages.
$messages = isset($_SESSION['messages']) ? $_SESSION['messages'] : '';
@@ -716,7 +715,7 @@ function install_tasks($profile, $task) {
if ($task == 'locale-batch') {
include_once 'includes/batch.inc';
include_once 'includes/locale.inc';
- $output .= _batch_page();
+ $output = _batch_page();
}
// Display a 'finished' page to user.
@@ -744,8 +743,11 @@ function install_tasks($profile, $task) {
install_task_list($task);
variable_set('install_task', $task);
- // Output page.
- print theme('maintenance_page', $output);
+ // Output page, if some output was required. Otherwise it is possible
+ // that we are printing a JSON page and theme output should not be there.
+ if (isset($output)) {
+ print theme('maintenance_page', $output);
+ }
}
/**