Update wfMessage doc
authorBrad Jorsch <bjorsch@wikimedia.org>
Tue, 16 Sep 2014 18:04:16 +0000 (14:04 -0400)
committerTim Starling <tstarling@wikimedia.org>
Wed, 17 Sep 2014 06:02:24 +0000 (06:02 +0000)
The Message class constructor has long supported passing an array of
keys for fallback messages, and wfMessage passes the $keys parameter
through unchanged.

And since this is already in use in core, we may as well document it.

Change-Id: I8f7f9ade87e855300650b2e7e31b9303daa96ac5

includes/GlobalFunctions.php

index 20398a5..490df24 100644 (file)
@@ -1407,7 +1407,7 @@ function wfGetLangObj( $langcode = false ) {
  *
  * This function replaces all old wfMsg* functions.
  *
- * @param string $key Message key
+ * @param string|string[] $key Message key, or array of keys
  * @param mixed $params,... Normal message parameters
  * @return Message
  *