From: Andrew Garrett Date: Wed, 5 May 2010 02:42:03 +0000 (+0000) Subject: Some weird people are using HTMLForm without a submission callback. X-Git-Tag: 1.31.0-rc.0~36940 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=2b2bb7c61c223f8f9cb470b4397f24d3e96b0b5f;p=lhc%2Fweb%2Fwiklou.git Some weird people are using HTMLForm without a submission callback. --- diff --git a/includes/HTMLForm.php b/includes/HTMLForm.php index 636e0d0e4c..e61bbba365 100644 --- a/includes/HTMLForm.php +++ b/includes/HTMLForm.php @@ -195,9 +195,6 @@ class HTMLForm { if ( ! $this->mTitle ) { throw new MWException( "You must call setTitle() on an HTMLForm" ); } - if ( ! $this->mSubmitCallback ) { - throw new MWException( "You must set a submission callback" ); - } $html = '';