On the payment tab of an order (admin/commerce/orders/ORDERID/payment) there is a status icon.
However, on multilingual sites this doesn't work, since the image src is for example http://domain.com/en/sites/all/modules/contrib/commerce/modules/payment/theme/icon-success.png

This can be changed by using file_create_url() instead of url() to generate the src attribute.
I cleaned this up further by using theme('image') instead. Not sure if that's desired, but works fine in my tests.
See attached patch.

CommentFileSizeAuthor
#1 commerce_payment_icon-1271730.patch919 bytessvendecabooter

Comments

svendecabooter’s picture

Status: Active » Needs review
StatusFileSize
new919 bytes
guictx’s picture

Works for me.

rszrama’s picture

Status: Needs review » Fixed

Thanks for the patch and the review. Committed!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.