From: Jayprakash12345 <0freerunning@gmail.com> Date: Fri, 6 Apr 2018 01:11:32 +0000 (+0530) Subject: Make setSubmitProgressive() Deprecate X-Git-Tag: 1.34.0-rc.0~5607^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/Category:D?a=commitdiff_plain;h=e7cd669bc5cc7bbbd1e33339d3828099117aedac;p=lhc%2Fweb%2Fwiklou.git Make setSubmitProgressive() Deprecate Bug: T191586 Change-Id: Ie310ea9c3ca7c9e4b8755ba500e2ccafd0b64463 --- diff --git a/RELEASE-NOTES-1.32 b/RELEASE-NOTES-1.32 index 2eb3679ac7..642604597f 100644 --- a/RELEASE-NOTES-1.32 +++ b/RELEASE-NOTES-1.32 @@ -62,6 +62,8 @@ changes to languages because of Phabricator reports. configuration in LocalSettings.php. === Other changes in 1.32 === +* HTMLForm::setSubmitProgressive() is deprecated. No need to call. Submit + button already has a progressive action form. * … == Compatibility == diff --git a/includes/htmlform/HTMLForm.php b/includes/htmlform/HTMLForm.php index af1743e078..45a4143b97 100644 --- a/includes/htmlform/HTMLForm.php +++ b/includes/htmlform/HTMLForm.php @@ -1336,10 +1336,13 @@ class HTMLForm extends ContextSource { /** * Identify that the submit button in the form has a progressive action * @since 1.25 + * @deprecated since 1.32, No need to call. Submit button already + * has a progressive action form. * * @return HTMLForm $this for chaining calls (since 1.28) */ public function setSubmitProgressive() { + wfDeprecated( __METHOD__, '1.32' ); $this->mSubmitFlags = [ 'progressive', 'primary' ]; return $this;