diff --git a/core/includes/unicode.inc b/core/includes/unicode.inc index 1450b43..1eedf25 100644 --- a/core/includes/unicode.inc +++ b/core/includes/unicode.inc @@ -138,7 +138,7 @@ function unicode_requirements() { ); $severities = array( UNICODE_SINGLEBYTE => REQUIREMENT_WARNING, - UNICODE_MULTIBYTE => REQUIREMENT_OK, + UNICODE_MULTIBYTE => NULL, UNICODE_ERROR => REQUIREMENT_ERROR, ); list($library, $description) = _unicode_check(); diff --git a/core/modules/color/color.install b/core/modules/color/color.install index a1879f9..c3f9a74 100644 --- a/core/modules/color/color.install +++ b/core/modules/color/color.install @@ -20,10 +20,7 @@ function color_requirements($phase) { ); // Check for PNG support. - if (function_exists('imagecreatefrompng')) { - $requirements['color_gd']['severity'] = REQUIREMENT_OK; - } - else { + if (!function_exists('imagecreatefrompng')) { $requirements['color_gd']['severity'] = REQUIREMENT_WARNING; $requirements['color_gd']['description'] = t('The GD library for PHP is enabled, but was compiled without PNG support. Check the PHP image documentation for information on how to correct this.', array('@url' => 'http://www.php.net/manual/ref.image.php')); } diff --git a/core/modules/file/file.install b/core/modules/file/file.install index 47ee4fd..2d0e6db 100644 --- a/core/modules/file/file.install +++ b/core/modules/file/file.install @@ -60,36 +60,29 @@ function file_requirements($phase) { if (!$apache) { $value = t('Not enabled'); $description = t('Your server is not capable of displaying file upload progress. File upload progress requires an Apache server running PHP with mod_php.'); - $severity = REQUIREMENT_INFO; } elseif ($fastcgi) { $value = t('Not enabled'); $description = t('Your server is not capable of displaying file upload progress. File upload progress requires PHP be run with mod_php and not as FastCGI.'); - $severity = REQUIREMENT_INFO; } elseif (!$implementation && extension_loaded('apc')) { $value = t('Not enabled'); $description = t('Your server is capable of displaying file upload progress through APC, but it is not enabled. Add apc.rfc1867 = 1 to your php.ini configuration. Alternatively, it is recommended to use PECL uploadprogress, which supports more than one simultaneous upload.'); - $severity = REQUIREMENT_INFO; } elseif (!$implementation) { $value = t('Not enabled'); $description = t('Your server is capable of displaying file upload progress, but does not have the required libraries. It is recommended to install the PECL uploadprogress library (preferred) or to install APC.'); - $severity = REQUIREMENT_INFO; } elseif ($implementation == 'apc') { $value = t('Enabled (APC RFC1867)'); $description = t('Your server is capable of displaying file upload progress using APC RFC1867. Note that only one upload at a time is supported. It is recommended to use the PECL uploadprogress library if possible.'); - $severity = REQUIREMENT_OK; } elseif ($implementation == 'uploadprogress') { $value = t('Enabled (PECL uploadprogress)'); - $severity = REQUIREMENT_OK; } $requirements['file_progress'] = array( 'title' => t('Upload progress'), 'value' => $value, - 'severity' => $severity, 'description' => $description, ); } diff --git a/core/modules/image/image.install b/core/modules/image/image.install index 02be57c..7488bea 100644 --- a/core/modules/image/image.install +++ b/core/modules/image/image.install @@ -167,10 +167,7 @@ function image_requirements($phase) { ); // Check for filter and rotate support. - if (function_exists('imagefilter') && function_exists('imagerotate')) { - $requirements['image_gd']['severity'] = REQUIREMENT_OK; - } - else { + if (!function_exists('imagefilter') || !function_exists('imagerotate')) { $requirements['image_gd']['severity'] = REQUIREMENT_WARNING; $requirements['image_gd']['description'] = t('The GD Library for PHP is enabled, but was compiled without support for functions used by the rotate and desaturate effects. It was probably compiled using the official GD libraries from http://www.libgd.org instead of the GD library bundled with PHP. You should recompile PHP --with-gd using the bundled GD library. See the PHP manual.'); } diff --git a/core/modules/openid/openid.install b/core/modules/openid/openid.install index 2df39aa..086075f 100644 --- a/core/modules/openid/openid.install +++ b/core/modules/openid/openid.install @@ -108,7 +108,6 @@ function openid_requirements($phase) { else { $requirements['openid_math'] = array( 'value' => t('Installed'), - 'severity' => REQUIREMENT_OK, ); } $requirements['openid_math']['title'] = t('OpenID Math library'); diff --git a/core/modules/system/system.admin-rtl.css b/core/modules/system/system.admin-rtl.css index 362a406..8f322b8 100644 --- a/core/modules/system/system.admin-rtl.css +++ b/core/modules/system/system.admin-rtl.css @@ -35,9 +35,6 @@ table.system-status-report td.status-icon { padding-left: 0; padding-right: 6px; } -table.system-status-report tr.merge-up td { - padding: 0 28px 8px 6px; -} /** * Appearance page. diff --git a/core/modules/system/system.admin.css b/core/modules/system/system.admin.css index 7299484..77cd67d 100644 --- a/core/modules/system/system.admin.css +++ b/core/modules/system/system.admin.css @@ -100,9 +100,6 @@ table.system-status-report td { padding: 6px; vertical-align: middle; } -table.system-status-report tr.merge-up td { - padding: 0 6px 8px 28px; /* LTR */ -} table.system-status-report td.status-icon { width: 16px; padding-right: 0; /* LTR */ @@ -118,14 +115,6 @@ table.system-status-report tr.error td.status-icon div { table.system-status-report tr.warning td.status-icon div { background-image: url(../../misc/message-16-warning.png); } -tr.merge-down, -tr.merge-down td { - border-bottom-width: 0 !important; -} -tr.merge-up, -tr.merge-up td { - border-top-width: 0 !important; -} /** * Theme settings. diff --git a/core/modules/system/system.admin.inc b/core/modules/system/system.admin.inc index 1c865a6..f9c978d 100644 --- a/core/modules/system/system.admin.inc +++ b/core/modules/system/system.admin.inc @@ -2543,17 +2543,31 @@ function theme_status_report($variables) { foreach ($requirements as $requirement) { if (empty($requirement['#type'])) { - $severity = $severities[isset($requirement['severity']) ? (int) $requirement['severity'] : 0]; + // Always use the explicit requirement severity, if defined. Otherwise, + // default to REQUIREMENT_OK in the installer to visually confirm that + // installation requirements are met. And default to REQUIREMENT_INFO to + // denote neutral information without special visualization. + if (isset($requirement['severity'])) { + $severity = $severities[(int) $requirement['severity']]; + } + elseif (defined('MAINTENANCE_MODE') && MAINTENANCE_MODE == 'install') { + $severity = $severities[REQUIREMENT_OK]; + } + else { + $severity = $severities[REQUIREMENT_INFO]; + } + $severity['icon'] = '
' . $severity['title'] . '
'; - // Output table row(s) + // Output table rows. + $output .= ''; + $output .= '' . $severity['icon'] . ''; + $output .= '' . $requirement['title'] . ''; + $output .= '' . $requirement['value']; if (!empty($requirement['description'])) { - $output .= '' . $severity['icon'] . '' . $requirement['title'] . '' . $requirement['value'] . ''; - $output .= '' . $requirement['description'] . ''; - } - else { - $output .= '' . $severity['icon'] . '' . $requirement['title'] . '' . $requirement['value'] . ''; + $output .= '
' . $requirement['description'] . '
'; } + $output .= ''; } } diff --git a/core/modules/system/system.install b/core/modules/system/system.install index d562bf6..b9f3cce 100644 --- a/core/modules/system/system.install +++ b/core/modules/system/system.install @@ -267,7 +267,7 @@ function system_requirements($phase) { } // Determine severity based on time since cron last ran. - $severity = REQUIREMENT_OK; + $severity = REQUIREMENT_INFO; if (REQUEST_TIME - $cron_last > $threshold_error) { $severity = REQUIREMENT_ERROR; } @@ -278,7 +278,7 @@ function system_requirements($phase) { // Set summary and description based on values determined above. $summary = $t('Last run !time ago', array('!time' => format_interval(REQUEST_TIME - $cron_last))); $description = ''; - if ($severity != REQUIREMENT_OK) { + if ($severity != REQUIREMENT_INFO) { $description = $t('Cron has not run recently.') . ' ' . $help; } @@ -369,7 +369,6 @@ function system_requirements($phase) { if ($phase == 'runtime') { $requirements['update'] = array( 'title' => $t('Database updates'), - 'severity' => REQUIREMENT_OK, 'value' => $t('Up to date'), ); diff --git a/core/themes/seven/style.css b/core/themes/seven/style.css index 4214453..d67080f 100644 --- a/core/themes/seven/style.css +++ b/core/themes/seven/style.css @@ -493,6 +493,7 @@ table tr.selected td { background: #ffc; border-color: #eeb; } + table.system-status-report tr { border-bottom: 1px solid #ccc; } @@ -500,10 +501,6 @@ table.system-status-report tr.ok { color: #255b1e; background-color: #e5ffe2; } -table.system-status-report tr.info { - color: #040f37; - background-color: #bdf; -} table.system-status-report tr.warning { color: #840; background-color: #fffce5; @@ -512,6 +509,14 @@ table.system-status-report tr.error { color: #8c2e0b; background-color: #fef5f1; } +table.system-status-report td:nth-child(-n+2) { + background-color: rgba(0, 0, 0, 0.04); + vertical-align: top; +} +table.system-status-report .status-title { + width: 25%; +} + /** * Exception for webkit bug with the right border of the last cell * in some tables, since it's webkit only, we can use :last-child