From: Alexandre Emsenhuber Date: Mon, 22 Apr 2013 18:20:41 +0000 (+0200) Subject: Fix HTMLForm's documentation example X-Git-Tag: 1.31.0-rc.0~19857^2 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=c867664fe8d1c952aa54adcbeb95198c777cd9d0;p=lhc%2Fweb%2Fwiklou.git Fix HTMLForm's documentation example - suppressReset() is useless since it's disabled by default now - displayForm() requires an argument Change-Id: I1125460611e74a3812784954a935fab612a7881c --- 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 :(