From: Antoine Musso Date: Mon, 5 Mar 2012 12:05:13 +0000 (+0000) Subject: TODO about 'class' throwing a fatal error X-Git-Tag: 1.31.0-rc.0~24395 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=5605cfbf1b09b731f279cb06f40119c25cb76a6d;p=lhc%2Fweb%2Fwiklou.git TODO about 'class' throwing a fatal error --- 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;