From 18a5b95a332abb8e819ffbed3901437d6722c6ed Mon Sep 17 00:00:00 2001 From: webchick Date: Wed, 22 Jun 2011 17:53:54 -0700 Subject: 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(-) (limited to 'modules') diff --git a/modules/color/color.install b/modules/color/color.install index b0eb95ef6..2a6b9cdd1 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 fbd20de50..5f096cc2f 100644 --- a/modules/image/image.install +++ b/modules/image/image.install @@ -264,7 +264,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.'); } } -- cgit v1.2.3