From 2b2bb7c61c223f8f9cb470b4397f24d3e96b0b5f Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Wed, 5 May 2010 02:42:03 +0000 Subject: [PATCH] Some weird people are using HTMLForm without a submission callback. --- includes/HTMLForm.php | 3 --- 1 file changed, 3 deletions(-) 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 = ''; -- 2.20.1