From d9bceab09793adb66ceec3abf0630885870412bc Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Wed, 15 Jun 2011 16:33:13 +0000 Subject: [PATCH] Per Brion, follow-up r86784: doucment that wfMsg() and related also accept message parameters as an array in the second parameter --- includes/GlobalFunctions.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 2d84b69338..24fdab1bb2 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -705,9 +705,12 @@ function wfMessageFallback( /*...*/ ) { * @param $key String: lookup key for the message, usually * defined in languages/Language.php * - * This function also takes extra optional parameters (not - * shown in the function definition), which can be used to - * insert variable text into the predefined message. + * Parameters to the message, which can be used to insert variable text into + * it, can be passed to this function in the following formats: + * - One per argument, starting at the second parameter + * - As an array in the second parameter + * These are not shown in the function definition. + * * @return String */ function wfMsg( $key ) { -- 2.20.1