Attached is a small patch to tweak TextImage's error handling when the site does not have GD enabled. Two changes:

  1. Change drupal_set_message() from the 'status' default to 'error', which reflects that the module does not function without the GD extension.
  2. Add a function_exists() before calling gd_info(), to prevent a PHP error.
CommentFileSizeAuthor
gd_test.patch1.4 KBChrisKennedy

Comments

deciphered’s picture

Status: Needs review » Closed (fixed)

The check for GD has now been moved into the .install file so this no longer applies.

Cheers,
Deciphered.