From 5605cfbf1b09b731f279cb06f40119c25cb76a6d Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Mon, 5 Mar 2012 12:05:13 +0000 Subject: [PATCH] TODO about 'class' throwing a fatal error --- includes/HTMLForm.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/HTMLForm.php b/includes/HTMLForm.php index 4065539b82..ac035cf2e1 100644 --- a/includes/HTMLForm.php +++ b/includes/HTMLForm.php @@ -217,6 +217,10 @@ class HTMLForm extends ContextSource { $descriptor['fieldname'] = $fieldname; + # TODO + # This will throw a fatal error whenever someone try to use + # 'class' to feed a CSS class instead of 'cssclass'. Would be + # great to avoid the fatal error and show a nice error. $obj = new $class( $descriptor ); return $obj; -- 2.20.1