Skip to content

image_example_colorize_effect() does not use the correct placeholder #25

@avpaderno

Description

@avpaderno

image_example_colorize_effect() logs an error message using the following code.

if (!function_exists('imagefilter')) {
  watchdog('image', 'The image %image could not be colorized because the imagefilter() function is not available in this PHP installation.', array('%file' => $image->source));
  return FALSE;
}

The used placeholder is %image but then the '%file' index is provided in the array passed as second argument for watchdog(). The array index should be '%image', or the logged error will literally be The image %image could not be colorized because the imagefilter() function is not available in this PHP installation. where the placeholder is not replaced.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions