Allow passing a language into Status::getWikiText() etc.
authorBrad Jorsch <bjorsch@wikimedia.org>
Wed, 9 Mar 2016 17:39:50 +0000 (12:39 -0500)
committerBryanDavis <bdavis@wikimedia.org>
Wed, 9 Mar 2016 22:35:19 +0000 (22:35 +0000)
commit7c543bb6c25ec41947075842aaf3a3d4fb2b8c87
tree251635ae9d1940b616b1cc6ce6746fc2c3cbc472
parent9b94bd502fbb4f6b114a3474a5426be7ea6c0274
Allow passing a language into Status::getWikiText() etc.

This also corrects a bug in MessageCache::parse() where it takes a
language code string but the Parser expects a Language object in
ParserOptions.

Bug: T128809
Change-Id: I3508c9e515e505890b3c62bc4a0982aa2a313782
includes/Status.php
includes/cache/MessageCache.php
tests/phpunit/includes/StatusTest.php