From: Derick Alangi Date: Tue, 14 May 2019 13:29:40 +0000 (+0100) Subject: HTMLForm: Add known MediaWiki version to wfDeprecated() call X-Git-Tag: 1.34.0-rc.0~1669 X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_user_edit%27%2C%20iduser=user.userid%29%20%7D%7D?a=commitdiff_plain;h=fefedf568bd39ccda63846e304ea93f2dd707099;p=lhc%2Fweb%2Fwiklou.git HTMLForm: Add known MediaWiki version to wfDeprecated() call In 3706dcb, this method was soft deprecated and hard deprecated at the same time (1.28) but during the call to wfDeprecated for hard deprecation, the version number was missed, though this will default to false, it's good to use the version number which is known in this case (1.28). Change-Id: I535ad07e79d14bac8ec42beaeb4b3762a494b28b --- diff --git a/includes/htmlform/HTMLForm.php b/includes/htmlform/HTMLForm.php index 85a2a1bdd4..f5be83fc1a 100644 --- a/includes/htmlform/HTMLForm.php +++ b/includes/htmlform/HTMLForm.php @@ -1287,7 +1287,7 @@ class HTMLForm extends ContextSource { * @return string */ public function getErrors( $errors ) { - wfDeprecated( __METHOD__ ); + wfDeprecated( __METHOD__, '1.28' ); return $this->getErrorsOrWarnings( $errors, 'error' ); }