From 616861c866e414114642144712d2edd8c92e57c9 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Thu, 29 Oct 2009 07:11:50 +0000 Subject: [PATCH] #602496 by dww: Clean up the update manager project selector page when updating your site. --- modules/update/update.manager.inc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/update/update.manager.inc b/modules/update/update.manager.inc index 26ed4e8f962..ab8eade28b0 100644 --- a/modules/update/update.manager.inc +++ b/modules/update/update.manager.inc @@ -215,8 +215,8 @@ function update_manager_update_form($form, $form_state = array(), $context) { '#header' => $headers, '#options' => $projects['enabled'], ); - if (count($projects) > 1) { - $form['projects']['#prefix'] = '

' . t('Enabled add-ons') . '

'; + if (!empty($projects['disabled'])) { + $form['projects']['#prefix'] = '

' . t('Enabled') . '

'; } } @@ -226,10 +226,8 @@ function update_manager_update_form($form, $form_state = array(), $context) { '#header' => $headers, '#options' => $projects['disabled'], '#weight' => 1, + '#prefix' => '

' . t('Disabled') . '

', ); - if (count($projects) > 1) { - $form['disabled_projects']['#prefix'] = '

' . t('Disabled add-ons') . '

'; - } } // If either table has been printed yet, we need a submit button and to