dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2741323
)
TODO about 'class' throwing a fatal error
author
Antoine Musso
<hashar@users.mediawiki.org>
Mon, 5 Mar 2012 12:05:13 +0000
(12:05 +0000)
committer
Antoine Musso
<hashar@users.mediawiki.org>
Mon, 5 Mar 2012 12:05:13 +0000
(12:05 +0000)
includes/HTMLForm.php
patch
|
blob
|
history
diff --git
a/includes/HTMLForm.php
b/includes/HTMLForm.php
index
4065539
..
ac035cf
100644
(file)
--- 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;