From f81baad5b39b09d8a86428b54edd6598dfcb0194 Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Wed, 28 Jan 2015 11:15:13 -0800 Subject: [PATCH] Fix doc for ManualLogEntry::setParameters() Numbered-and-named parameters are "number:type:name" (where "type" is often empty), not "number:name". Change-Id: I417a3d6caf929a94ffed5e315692950295b3be0d --- includes/logging/LogEntry.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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' * ); * -- 2.20.1