Skip to content
Snippets Groups Projects
Commit 5e4d8114 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #758628 follow-up by jbrown, mgifford, nowarninglabel: Make GD library...

Issue #758628 follow-up by jbrown, mgifford, nowarninglabel: Make GD library hook_requirements() desaturation and rotate errors into warnings..
parent 8f139a81
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -24,7 +24,7 @@ function color_requirements($phase) { ...@@ -24,7 +24,7 @@ function color_requirements($phase) {
$requirements['color_gd']['severity'] = REQUIREMENT_OK; $requirements['color_gd']['severity'] = REQUIREMENT_OK;
} }
else { 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')); $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'));
} }
} }
......
...@@ -164,7 +164,7 @@ function image_requirements($phase) { ...@@ -164,7 +164,7 @@ function image_requirements($phase) {
$requirements['image_gd']['severity'] = REQUIREMENT_OK; $requirements['image_gd']['severity'] = REQUIREMENT_OK;
} }
else { 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>.'); $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>.');
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment