Skip to content

Commit

Permalink
Fix step specific titles.
Browse files Browse the repository at this point in the history
  • Loading branch information
drsdre committed Oct 16, 2015
1 parent ad79808 commit ba4d2bd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion WizardWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}

0 comments on commit ba4d2bd

Please sign in to comment.