Use restriction-level-* messages in Linker::formatTemplates
authorBrad Jorsch <bjorsch@wikimedia.org>
Fri, 18 Oct 2013 14:29:36 +0000 (10:29 -0400)
committerTim Starling <tstarling@wikimedia.org>
Wed, 23 Oct 2013 03:21:57 +0000 (03:21 +0000)
commit33c5d1dbcf69a83ab60be3a2c180ae091072c580
tree899a80e81812ec99549051f1252f99a6b6c74659
parente6b1baf240b8323ab092ce9be85050bf63336049
Use restriction-level-* messages in Linker::formatTemplates

The current implementation of Linker::formatTemplates only checks for
"sysop" and "autoconfirmed", and completely ignores any other protection
levels. That needs fixing.

Rather than introducing additional messages "template-protected-*" to
match template-protected and template-semiprotected, let's just use the
existing restriction-level-foo messages and wrap them in parentheses.

The old messages are kept for backwards compatability, but could
probably be considered deprecated.

Bug: 43462
Change-Id: I0c507f4ecc1921f599acbda834fa55e96388fa7b
includes/Linker.php