From b07a2219fb31bdfb7058180af5452b383f215cef Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Tue, 19 Nov 2013 22:04:26 +0100 Subject: [PATCH] Document future removal of action=parse&prop=languageshtml Change-Id: I600bbac02633f3b17044602917d062106ae83867 --- RELEASE-NOTES-1.23 | 2 ++ includes/api/ApiParse.php | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES-1.23 b/RELEASE-NOTES-1.23 index 2d89dd2f04..a51575d815 100644 --- a/RELEASE-NOTES-1.23 +++ b/RELEASE-NOTES-1.23 @@ -60,6 +60,8 @@ production. * action=query&meta=filerepoinfo now returns additional information for each repo. * EditPage::spamPage() was deprecated since 1.17 and has been removed. +* action=parse&prop=languageshtml was deprecated in 1.18 and will be removed in + MediaWiki 1.24. === Languages updated in 1.23=== diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php index ddc032d779..88904c0c73 100644 --- a/includes/api/ApiParse.php +++ b/includes/api/ApiParse.php @@ -532,6 +532,9 @@ class ApiParse extends ApiBase { */ private function languagesHtml( $languages ) { wfDeprecated( __METHOD__, '1.18' ); + $this->setWarning( '"action=parse&prop=languageshtml" is deprecated ' . + 'and will be removed in MediaWiki 1.24. Use "prop=langlinks" ' . + 'to generate your own HTML.' ); global $wgContLang, $wgHideInterlanguageLinks; @@ -716,7 +719,8 @@ class ApiParse extends ApiBase { ' langlinks - Gives the language links in the parsed wikitext', ' categories - Gives the categories in the parsed wikitext', ' categorieshtml - Gives the HTML version of the categories', - ' languageshtml - Gives the HTML version of the language links', + ' languageshtml - DEPRECATED. Will be removed in MediaWiki 1.24.', + ' Gives the HTML version of the language links', ' links - Gives the internal links in the parsed wikitext', ' templates - Gives the templates in the parsed wikitext', ' images - Gives the images in the parsed wikitext', -- 2.20.1