Issue #758628 follow-up by jbrown, mgifford, nowarninglabel: Make GD library hook_requirements() desaturation and rotate errors into warnings..

8.0.x
webchick 2011-06-22 17:53:43 -07:00
parent 8f139a8141
commit 5e4d811488
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ function color_requirements($phase) {
$requirements['color_gd']['severity'] = REQUIREMENT_OK;
}
else {
$requirements['color_gd']['severity'] = REQUIREMENT_ERROR;
$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 <a href="@url">PHP image documentation</a> for information on how to correct this.', array('@url' => 'http://www.php.net/manual/ref.image.php'));
}
}

View File

@ -164,7 +164,7 @@ function image_requirements($phase) {
$requirements['image_gd']['severity'] = REQUIREMENT_OK;
}
else {
$requirements['image_gd']['severity'] = REQUIREMENT_ERROR;
$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 <a href="http://www.php.net/manual/book.image.php">the PHP manual</a>.');
}
}