User: System block reasons shouldn't expand templates
authorBrad Jorsch <bjorsch@wikimedia.org>
Sat, 12 May 2018 12:03:04 +0000 (08:03 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Sat, 12 May 2018 12:13:39 +0000 (08:13 -0400)
commitd152ff76a562c536b2088bae9ef4da83332d1a21
tree545d4c7df2ef788d4cd7bfec0485236b7bc31da1
parent589fa9248d991e5999dbdc18c22ff891bb73e87d
User: System block reasons shouldn't expand templates

The block reasons for "system" blocks shouldn't expand wikitext
templates immediately. That should be left for the code parsing the
block reason for display.

This should only affect how these blocks are reported to API clients, as
when the block is displayed in the web UI it's passed through the parser
anyway. The main drawback, as far as the default messages go, is that
MediaWiki:sorbsreason won't have {{SITENAME}} expanded in
the API response anymore.

Bug: T191939
Change-Id: Ib2024721ea0e26358b9b50efdac16316d6d0f0b6
includes/user/User.php