From 53f43f517683b06e0249c0239d0889dcc76e6baa Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Thu, 17 Mar 2011 12:13:27 +1300 Subject: [PATCH] API CHANGE Removed deprecated $allowHTML parameter from HeaderField constructor. Use allowHTML() method instead --- forms/HeaderField.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/forms/HeaderField.php b/forms/HeaderField.php index 05206598f..b9183a8eb 100755 --- a/forms/HeaderField.php +++ b/forms/HeaderField.php @@ -12,7 +12,7 @@ class HeaderField extends DatalessField { */ protected $headingLevel = 2; - function __construct($name, $title = null, $headingLevel = 2, $allowHTML = false, $form = null) { + function __construct($name, $title = null, $headingLevel = 2, $form = null) { // legacy handling for old parameters: $title, $heading, ... // instead of new handling: $name, $title, $heading, ... $args = func_get_args(); @@ -22,14 +22,12 @@ class HeaderField extends DatalessField { // causing accidental duplicate-field creation. $name = 'HeaderField' . $title; // this means i18nized fields won't be easily accessible through fieldByName() $headingLevel = (isset($args[1])) ? $args[1] : null; - $allowHTML = (isset($args[2])) ? $args[2] : null; $form = (isset($args[3])) ? $args[3] : null; } if($headingLevel) $this->headingLevel = $headingLevel; - $this->allowHTML = $allowHTML; - parent::__construct($name, $title, null, $allowHTML, $form); + parent::__construct($name, $title, null, $form); } function Field() {