Adding in changes to theme_image_style() that had somehow not gotten merged in from core previously

8.0.x
Greg Dunlap 2012-02-13 16:45:19 -08:00
parent 85306e2ff1
commit fbd6af0b1a
1 changed files with 2 additions and 2 deletions

View File

@ -1030,7 +1030,7 @@ function image_effect_apply($image, $effect) {
* @param $variables
* An associative array containing:
* - style_name: The name of the style to be used to alter the original image.
* - path: The path of the image file relative to the Drupal files directory.
* - uri: The path of the image file relative to the Drupal files directory.
* This function does not work with images outside the files directory nor
* with remotely hosted images.
* - width: The width of the source image (if known).
@ -1055,7 +1055,7 @@ function theme_image_style($variables) {
$variables['height'] = $dimensions['height'];
// Determine the url for the styled image.
$variables['path'] = image_style_url($variables['style_name'], $variables['path']);
$variables['uri'] = image_style_url($variables['style_name'], $variables['uri']);
return theme('image', $variables);
}