diff --git a/core/modules/system/src/Controller/DbUpdateController.php b/core/modules/system/src/Controller/DbUpdateController.php index 2526a18..62752ae 100644 --- a/core/modules/system/src/Controller/DbUpdateController.php +++ b/core/modules/system/src/Controller/DbUpdateController.php @@ -98,6 +98,12 @@ public static function create(ContainerInterface $container) { /** * Returns a database update page. * + * @param string $op + * The update operation to perform. Can be any of the below: + * - info + * - selection + * - run + * - results * @param \Symfony\Component\HttpFoundation\Request $request * The current request object. * @@ -364,13 +370,13 @@ protected function results() { '#links' => $this->helpfulLinks(), ); - // Output a list of queries executed. + // Output a list of info messages. if (!empty($_SESSION['update_results'])) { $all_messages = array(); foreach ($_SESSION['update_results'] as $module => $updates) { if ($module != '#abort') { $module_has_message = FALSE; - $query_messages = array(); + $info_messages = array(); foreach ($updates as $number => $queries) { $messages = array(); foreach ($queries as $query) { @@ -395,7 +401,7 @@ protected function results() { if ($messages) { $module_has_message = TRUE; - $query_messages[] = array( + $info_messages[] = array( '#theme' => 'item_list', '#items' => $messages, '#title' => $this->t('Update #@count', array('@count' => $number)), @@ -403,13 +409,13 @@ protected function results() { } } - // If there were any messages in the queries then prefix them with the - // module name and add it to the global message list. + // If there were any messages then prefix them with the module name + // and add it to the global message list. if ($module_has_message) { $all_messages[] = array( '#type' => 'container', '#prefix' => '

' . $this->t('@module module', array('@module' => $module)) . '

', - '#children' => $query_messages, + '#children' => $info_messages, ); } }