mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX Second constructor argument $title for HeaderField should be optional for legacy reasons
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64437 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
cb5d772111
commit
06671277a7
@ -12,7 +12,7 @@ class HeaderField extends DatalessField {
|
||||
*/
|
||||
protected $headingLevel = 2;
|
||||
|
||||
function __construct($name, $title, $headingLevel = 2, $allowHTML = false, $form = null) {
|
||||
function __construct($name, $title = null, $headingLevel = 2, $allowHTML = false, $form = null) {
|
||||
// legacy handling for old parameters: $title, $heading, ...
|
||||
// instead of new handling: $name, $title, $heading, ...
|
||||
$args = func_get_args();
|
||||
|
Loading…
x
Reference in New Issue
Block a user