mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #9007 from NightJar/pulls/4.0/headerfield
FIX HeaderField requires the optional Title field
This commit is contained in:
commit
58791e52b6
@ -30,7 +30,7 @@ class HeaderField extends DatalessField
|
|||||||
* @param string $title
|
* @param string $title
|
||||||
* @param int $headingLevel
|
* @param int $headingLevel
|
||||||
*/
|
*/
|
||||||
public function __construct($name, $title, $headingLevel = 2)
|
public function __construct($name, $title = null, $headingLevel = 2)
|
||||||
{
|
{
|
||||||
$this->setHeadingLevel($headingLevel);
|
$this->setHeadingLevel($headingLevel);
|
||||||
parent::__construct($name, $title);
|
parent::__construct($name, $title);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user