HTMLForm: Add known MediaWiki version to wfDeprecated() call
authorDerick Alangi <alangiderick@gmail.com>
Tue, 14 May 2019 13:29:40 +0000 (14:29 +0100)
committerUmherirrender <umherirrender_de.wp@web.de>
Sat, 18 May 2019 09:15:33 +0000 (09:15 +0000)
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

includes/htmlform/HTMLForm.php

index 85a2a1b..f5be83f 100644 (file)
@@ -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' );
        }