From ba4d2bdf8d7bc488e9849157c843f75a0ca21583 Mon Sep 17 00:00:00 2001 From: Andre Schuurman Date: Fri, 16 Oct 2015 09:29:05 +0200 Subject: [PATCH] Fix step specific titles. --- WizardWidget.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/WizardWidget.php b/WizardWidget.php index 08b4dc4..959aa5d 100644 --- a/WizardWidget.php +++ b/WizardWidget.php @@ -157,6 +157,12 @@ protected function navButton($button_type, $step, $button_id) { } else { $options['class'] = $options['class'].' next-step'; } - return Html::button($this->default_buttons[$button_type]['title'], $options); + + // Display button + if (isset($step['buttons'][$button_type]['title'])) { + return Html::button($step['buttons'][ $button_type ]['title'], $options); + } else { + return Html::button($this->default_buttons[ $button_type ]['title'], $options); + } } } \ No newline at end of file