Merge pull request #3 from mattbk/image-relpath

Include base_path() on Stripe image
This commit is contained in:
mattbk
2017-02-27 18:54:00 -06:00
committed by GitHub

View File

@ -154,7 +154,7 @@ function uc_stripe_form_uc_cart_checkout_form_alter(&$form, &$form_state) {
if (variable_get('uc_stripe_poweredby', FALSE)) {
$payment_form['field_message'] = array(
'#type' => 'item',
'#markup' => "<a href='http://stripe.com'><img src=".'/' . drupal_get_path('module', 'uc_stripe') . '/images/solid-dark.svg' . " alt='Powered by Stripe'></a>",
'#markup' => "<a href='http://stripe.com'><img src=".base_path().drupal_get_path('module', 'uc_stripe') . '/images/solid-dark.svg' . " alt='Powered by Stripe'></a>",
'#weight' => 1,
);
}