summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralexku2012-02-23 18:07:56 (GMT)
committer Stefan Auditor2012-02-23 18:07:56 (GMT)
commite245577b913127ef661e203f723b69fce0789635 (patch)
treedf3f69df04336e7b264316973870bb168cde87dd
parent3af196a65341bd1f538343f57de9302cf19f6f90 (diff)
Issue #1371894 by jyve,alexku,stephen Piscura: Images in correct Image Style folder, but not resized
-rw-r--r--adaptive_image.image.inc9
1 files changed, 7 insertions, 2 deletions
diff --git a/adaptive_image.image.inc b/adaptive_image.image.inc
index 04681a6..3a0e3df 100644
--- a/adaptive_image.image.inc
+++ b/adaptive_image.image.inc
@@ -37,8 +37,13 @@ function adaptive_image_style_deliver($style, $scheme) {
drupal_exit();
}
- $style['effects'][1]['data']['width'] = $resolution;
- $style['effects'][1]['data']['height'] = NULL;
+ foreach ($style['effects'] as $id => $effect) {
+ if ($effect['name'] == 'adaptive_image') {
+ $style['effects'][$id]['data']['width'] = $resolution;
+ $style['effects'][$id]['data']['height'] = NULL;
+ break;
+ }
+ }
$args = func_get_args();
array_shift($args);