From: Brad Jorsch Date: Wed, 28 Jan 2015 19:15:13 +0000 (-0800) Subject: Fix doc for ManualLogEntry::setParameters() X-Git-Tag: 1.31.0-rc.0~12584^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=f81baad5b39b09d8a86428b54edd6598dfcb0194;p=lhc%2Fweb%2Fwiklou.git Fix doc for ManualLogEntry::setParameters() Numbered-and-named parameters are "number:type:name" (where "type" is often empty), not "number:name". Change-Id: I417a3d6caf929a94ffed5e315692950295b3be0d --- diff --git a/includes/logging/LogEntry.php b/includes/logging/LogEntry.php index 46c55157c4..85a305243f 100644 --- a/includes/logging/LogEntry.php +++ b/includes/logging/LogEntry.php @@ -385,13 +385,14 @@ class ManualLogEntry extends LogEntryBase { /** * Set extra log parameters. - * You can pass params to the log action message - * by prefixing the keys with a number and colon. - * The numbering should start with number 4, the - * first three parameters are hardcoded for every - * message. Example: + * + * You can pass params to the log action message by prefixing the keys with + * a number and optional type, using colons to separate the fields. The + * numbering should start with number 4, the first three parameters are + * hardcoded for every message. Example: * $entry->setParameters( - * '4:color' => 'blue', + * '4::color' => 'blue', + * '5:number:count' => 3000, * 'animal' => 'dog' * ); *