summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'DisableAccount/DisableAccountLogFormatter.php')
-rw-r--r--DisableAccount/DisableAccountLogFormatter.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/DisableAccount/DisableAccountLogFormatter.php b/DisableAccount/DisableAccountLogFormatter.php
new file mode 100644
index 00000000..3072bbcf
--- /dev/null
+++ b/DisableAccount/DisableAccountLogFormatter.php
@@ -0,0 +1,12 @@
+<?php
+
+class DisableAccountLogFormatter extends LogFormatter {
+ protected function getMessageParameters() {
+ $params = parent::getMessageParameters();
+ if ( count( $params ) == 3 ) {
+ // Deal with old log entries which don't have this set (needed for GENDER support)
+ $params[3] = $this->entry->getTarget()->getRootText();
+ }
+ return $params;
+ }
+}