X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Factions%2FFormAction.php;h=26f43cb0c25823af8fc2e63d70c692d032e7be6d;hb=516265fa17124143e126a69f41fc13b704d0887b;hp=c6fcdde0c658ac7cbaf11c42d4d725f49220d772;hpb=9ede7aa660d9744dab49ba152e8775024661abef;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/actions/FormAction.php b/includes/actions/FormAction.php index c6fcdde0c6..26f43cb0c2 100644 --- a/includes/actions/FormAction.php +++ b/includes/actions/FormAction.php @@ -17,14 +17,13 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * * @file - */ - -/** - * @defgroup Actions Action done on pages + * @ingroup Actions */ /** * An action which shows a form and does something based on the input from the form + * + * @ingroup Actions */ abstract class FormAction extends Action { @@ -64,7 +63,7 @@ abstract class FormAction extends Action { $this->fields = $this->getFormFields(); // Give hooks a chance to alter the form, adding extra fields or text etc - wfRunHooks( 'ActionModifyFormFields', array( $this->getName(), &$this->fields, $this->page ) ); + Hooks::run( 'ActionModifyFormFields', array( $this->getName(), &$this->fields, $this->page ) ); $form = new HTMLForm( $this->fields, $this->getContext(), $this->getName() ); $form->setSubmitCallback( array( $this, 'onSubmit' ) ); @@ -82,7 +81,7 @@ abstract class FormAction extends Action { $this->alterForm( $form ); // Give hooks a chance to alter the form, adding extra fields or text etc - wfRunHooks( 'ActionBeforeFormDisplay', array( $this->getName(), &$form, $this->page ) ); + Hooks::run( 'ActionBeforeFormDisplay', array( $this->getName(), &$form, $this->page ) ); return $form; }