missing function name is not shown in the error message

dju - August 29, 2007 - 12:38
Project:Image watermark
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:active
Description

For example, when GD is missing png support, an error message appears in the watermark configuration page, telling us that the imagepng function does not exist. But actually the function name does not appear, instead we can see the word $function. In the watermark.module file, line 210, the drupal_set_message() function makes use of quotes instead of double quotes, so the $function variable is not replaced in the string.

#1

schnizZzla - September 8, 2007 - 18:12

"drupal_set_message() function makes use of quotes instead of double quotes, so the $function variable is not replaced in the string."

thx, for the info. that must have happened, when I have optimized the code according to drupal coding standards... because normally we avoid using double quotes. So in this case a concatenation or double quotes should be used.

 
 

Drupal is a registered trademark of Dries Buytaert.