Commit c01616fb authored by catch's avatar catch

Revert "Issue #2169765 by philipz, Sutharsan, ckrina, c_lehel, LewisNyman:...

Revert "Issue #2169765 by philipz, Sutharsan, ckrina, c_lehel, LewisNyman: Redesign update.php to be more consistent with the installation process."

This reverts commit 728aad1d.
parent c0b1b698
......@@ -910,6 +910,7 @@ function install_display_output($output, $install_state) {
'#theme' => 'task_list',
'#items' => install_tasks_to_display($install_state),
'#active' => $active_task,
'#variant' => 'install',
);
drupal_add_region_content('sidebar_first', drupal_render($task_list));
}
......
......@@ -109,16 +109,23 @@ function _drupal_maintenance_theme() {
* An associative array containing:
* - items: An associative array of maintenance tasks.
* - active: The key for the currently active maintenance task.
* - variant: A variant name to be used for a CSS class.
*
* @ingroup themeable
*/
function theme_task_list($variables) {
$items = $variables['items'];
$active = $variables['active'];
if (isset($variables['variant'])) {
$class = $variables['variant'] . '-task-list';
}
else {
$class = 'task-list';
}
$done = isset($items[$active]) || $active == NULL;
$output = '<h2 class="visually-hidden">Installation tasks</h2>';
$output .= '<ol class="task-list">';
$output .= '<ol class="' . $class . '">';
foreach ($items as $k => $item) {
if ($active == $k