Skip to content

Commit

Permalink
Run dialog name through placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesegrits committed Nov 16, 2018
1 parent 70d7ce4 commit 89462ee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion plugins/fabrik_form/stripe/stripe.php
Expand Up @@ -559,7 +559,12 @@ public function getBottomContent()
$secretKey = trim($params->get('stripe_secret_key', ''));
}

$opts->name = FText::_($params->get('stripe_dialog_name', ''));
$opts->name = FText::_(
$w->parseMessageForPlaceHolder(
$params->get('stripe_dialog_name', ''),
$this->data
)
);
$opts->panelLabel = FText::_($params->get('stripe_panel_label', 'PLG_FORM_STRIPE_PAY'));
$opts->allowRememberMe = false;
$opts->zipCode = $params->get('stripe_zipcode_check', '1') === '1';
Expand Down

0 comments on commit 89462ee

Please sign in to comment.