TODO about 'class' throwing a fatal error
authorAntoine Musso <hashar@users.mediawiki.org>
Mon, 5 Mar 2012 12:05:13 +0000 (12:05 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Mon, 5 Mar 2012 12:05:13 +0000 (12:05 +0000)
includes/HTMLForm.php

index 4065539..ac035cf 100644 (file)
@@ -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;