Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In _imagecache_apply_action() the specific action is applied by using call_user_func() even though the actions expects the $image to be passed by reference. Is it the actions which are implemented wrong or the use of call_user_func instead of call_user_func_array?
I my case I have a crop action which depends on another preset modifying the $image object. This patch solves that.
Comment | File | Size | Author |
---|---|---|---|
#3 | imagecache_335780.patch | 1.41 KB | drewish |
#2 | imagecache_335780.patch | 1.46 KB | drewish |
call_user_func_reference.patch | 1.12 KB | andershal |
Comments
Comment #1
drewish CreditAttribution: drewish commentedif image is an object then it should be passed by reference right?
Comment #2
drewish CreditAttribution: drewish commentedWhy not just ignore the whole call_user_func() bit? We don't have a dynamic number of arguments. Objects are passed by reference implicitly.
Comment #3
drewish CreditAttribution: drewish commentedcommitted the attached to HEAD.