From c867664fe8d1c952aa54adcbeb95198c777cd9d0 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Mon, 22 Apr 2013 20:20:41 +0200 Subject: [PATCH] Fix HTMLForm's documentation example - suppressReset() is useless since it's disabled by default now - displayForm() requires an argument Change-Id: I1125460611e74a3812784954a935fab612a7881c --- includes/HTMLForm.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/HTMLForm.php b/includes/HTMLForm.php index b7bdcfd20c..cd6c8632fa 100644 --- a/includes/HTMLForm.php +++ b/includes/HTMLForm.php @@ -83,9 +83,8 @@ * $form = new HTMLForm( $someFields ); * $form->setMethod( 'get' ) * ->setWrapperLegendMsg( 'message-key' ) - * ->suppressReset() * ->prepareForm() - * ->displayForm(); + * ->displayForm( '' ); * @endcode * Note that you will have prepareForm and displayForm at the end. Other * methods call done after that would simply not be part of the form :( -- 2.20.1