From: umherirrender Date: Sat, 17 Nov 2012 20:41:33 +0000 (+0100) Subject: Add username for GENDER in LogFormatter only when visible X-Git-Tag: 1.31.0-rc.0~20489 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=3f58c15f5a5c24168f3c4259d6ae757759b25d55;p=lhc%2Fweb%2Fwiklou.git Add username for GENDER in LogFormatter only when visible For sanity. bug:42621 Change-Id: If133597f06edcfdda4ad7a47506635743c80cd53 --- diff --git a/includes/logging/LogFormatter.php b/includes/logging/LogFormatter.php index eb8779f9c9..4d3565d858 100644 --- a/includes/logging/LogFormatter.php +++ b/includes/logging/LogFormatter.php @@ -439,7 +439,7 @@ class LogFormatter { $entry = $this->entry; $params = $this->extractParameters(); $params[0] = Message::rawParam( $this->getPerformerElement() ); - $params[1] = $entry->getPerformer()->getName(); + $params[1] = $this->canView( LogPage::DELETED_USER ) ? $entry->getPerformer()->getName() : ''; $params[2] = Message::rawParam( $this->makePageLink( $entry->getTarget() ) ); // Bad things happens if the numbers are not in correct order