dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge "Show revdel links instead of checkboxes on pages where there is no multiple...
[lhc/web/wiklou.git]
/
includes
/
HTMLForm.php
diff --git
a/includes/HTMLForm.php
b/includes/HTMLForm.php
index
e56ca2e
..
c149965
100644
(file)
--- a/
includes/HTMLForm.php
+++ b/
includes/HTMLForm.php
@@
-333,6
+333,9
@@
class HTMLForm extends ContextSource {
}
$callback = $this->mSubmitCallback;
+ if ( !is_callable( $callback ) ) {
+ throw new MWException( 'HTMLForm: no submit callback provided. Use setSubmitCallback() to set one.' );
+ }
$data = $this->filterDataForSubmit( $this->mFieldData );