Commit 5e4d8114 authored by webchick's avatar webchick

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
......@@ -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'));
}
}
......
......@@ -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>.');
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment