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:
Ingo Schommer 2008-10-16 13:54:21 +00:00
parent cb5d772111
commit 06671277a7

View File

@ -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();