From: Kunal Mehta Date: Sun, 10 Sep 2017 03:35:44 +0000 (-0700) Subject: WikiPage: Hard deprecate second arg of prepareContentForEdit() as an int X-Git-Tag: 1.31.0-rc.0~1976^2 X-Git-Url: http://git.cyclocoop.org/%27.parametre_url%28%20%20%20generer_action_auteur%28%27charger_plugin%27%2C%20%27update_flux%27%29%2C%27update_flux%27%2C%20%27oui%27%29.%27?a=commitdiff_plain;h=c1f342c675822509429aa02057c2950af1d0db3c;p=lhc%2Fweb%2Fwiklou.git WikiPage: Hard deprecate second arg of prepareContentForEdit() as an int This was documented as deprecated in ba2b22421526. Change-Id: I728cc0ea0b431138a8edb4d815c53f48e83d7143 --- diff --git a/includes/page/WikiPage.php b/includes/page/WikiPage.php index 312edbd25e..7f923f88a5 100644 --- a/includes/page/WikiPage.php +++ b/includes/page/WikiPage.php @@ -1989,6 +1989,7 @@ class WikiPage implements Page, IDBAccessObject { // This code path is deprecated, and nothing is known to // use it, so performance here shouldn't be a worry. if ( $revid !== null ) { + wfDeprecated( __METHOD__ . ' with $revision = revision ID', '1.25' ); $revision = Revision::newFromId( $revid, Revision::READ_LATEST ); } else { $revision = null;