r90117 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90116‎ | r90117 | r90118 >
Date:16:33, 15 June 2011
Author:ialex
Status:ok
Tags:
Comment:
Per Brion, follow-up r86784: doucment that wfMsg() and related also accept message parameters as an array in the second parameter
Modified paths:
  • /trunk/phase3/includes/GlobalFunctions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/GlobalFunctions.php
@@ -705,9 +705,12 @@
706706 * @param $key String: lookup key for the message, usually
707707 * defined in languages/Language.php
708708 *
709 - * This function also takes extra optional parameters (not
710 - * shown in the function definition), which can be used to
711 - * insert variable text into the predefined message.
 709+ * Parameters to the message, which can be used to insert variable text into
 710+ * it, can be passed to this function in the following formats:
 711+ * - One per argument, starting at the second parameter
 712+ * - As an array in the second parameter
 713+ * These are not shown in the function definition.
 714+ *
712715 * @return String
713716 */
714717 function wfMsg( $key ) {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r86784wfMsgReal() -> wfMsg() or wfMsgNoTrans()ialex17:42, 23 April 2011

Status & tagging log