Adding in changes to theme_image_style() that had somehow not gotten merged in from core previously
parent
85306e2ff1
commit
fbd6af0b1a
|
@ -1030,7 +1030,7 @@ function image_effect_apply($image, $effect) {
|
||||||
* @param $variables
|
* @param $variables
|
||||||
* An associative array containing:
|
* An associative array containing:
|
||||||
* - style_name: The name of the style to be used to alter the original image.
|
* - 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
|
* This function does not work with images outside the files directory nor
|
||||||
* with remotely hosted images.
|
* with remotely hosted images.
|
||||||
* - width: The width of the source image (if known).
|
* - width: The width of the source image (if known).
|
||||||
|
@ -1055,7 +1055,7 @@ function theme_image_style($variables) {
|
||||||
$variables['height'] = $dimensions['height'];
|
$variables['height'] = $dimensions['height'];
|
||||||
|
|
||||||
// Determine the url for the styled image.
|
// 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);
|
return theme('image', $variables);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue