mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-07-02 01:19:29 +02: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 int $headingLevel
|
||||
*/
|
||||
public function __construct($name, $title, $headingLevel = 2)
|
||||
public function __construct($name, $title = null, $headingLevel = 2)
|
||||
{
|
||||
$this->setHeadingLevel($headingLevel);
|
||||
parent::__construct($name, $title);
|
||||
|
|
Loading…
Reference in New Issue
Block a user