Legoktm has submitted this change and it was merged. Change subject: Pass uselang parameter to action=parse ......................................................................
Pass uselang parameter to action=parse Change-Id: Ie74e5e2f828714a4c40c114c37cbf74ec88d2000 --- M GlobalUserPage.body.php 1 file changed, 2 insertions(+), 0 deletions(-) Approvals: Legoktm: Verified; Looks good to me, approved diff --git a/GlobalUserPage.body.php b/GlobalUserPage.body.php index 8205b88..ea919fb 100644 --- a/GlobalUserPage.body.php +++ b/GlobalUserPage.body.php @@ -119,10 +119,12 @@ * @return array */ protected static function parseWikiText( $title ) { + global $wgLanguageCode; $params = array( 'action' => 'parse', 'page' => $title, 'disableeditsection' => 1, + 'uselang' => $wgLanguageCode, ); $data = self::makeAPIRequest( $params ); return $data['parse']['text']['*']; -- To view, visit https://gerrit.wikimedia.org/r/148308 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ie74e5e2f828714a4c40c114c37cbf74ec88d2000 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/GlobalUserPage Gerrit-Branch: master Gerrit-Owner: Legoktm <legoktm.wikipe...@gmail.com> Gerrit-Reviewer: Legoktm <legoktm.wikipe...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits