From 5e4d811488eb2c52502c2694b84376286e743734 Mon Sep 17 00:00:00 2001 From: webchick Date: Wed, 22 Jun 2011 17:53:43 -0700 Subject: [PATCH] Issue #758628 follow-up by jbrown, mgifford, nowarninglabel: Make GD library hook_requirements() desaturation and rotate errors into warnings.. --- modules/color/color.install | 2 +- modules/image/image.install | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/color/color.install b/modules/color/color.install index 5705ade3f8b..a1879f9b559 100644 --- a/modules/color/color.install +++ b/modules/color/color.install @@ -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 PHP image documentation for information on how to correct this.', array('@url' => 'http://www.php.net/manual/ref.image.php')); } } diff --git a/modules/image/image.install b/modules/image/image.install index 121e8c73af4..6f37ad00ed9 100644 --- a/modules/image/image.install +++ b/modules/image/image.install @@ -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 the PHP manual.'); } }