Uglier than ugly hack to fix block log any many others by not having the username...
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Wed, 22 Feb 2012 18:56:14 +0000 (18:56 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Wed, 22 Feb 2012 18:56:14 +0000 (18:56 +0000)
includes/logging/LogFormatter.php

index ab8b307..db67b09 100644 (file)
@@ -171,6 +171,7 @@ class LogFormatter {
         */
        public function getIRCActionText() {
                $this->plaintext = true;
+               $this->irctext = true;
                $text = $this->getActionText();
 
                $entry = $this->entry;
@@ -250,6 +251,7 @@ class LogFormatter {
                                                break;
                                }
                                break;
+                       
 
                        // case 'suppress' --private log -- aaron  (sign your messages so we know who to blame in a few years :-D)
                        // default:
@@ -522,7 +524,11 @@ class LegacyLogFormatter extends LogFormatter {
                );
 
                $performer = $this->getPerformerElement();
-               return $performer .  $this->msg( 'word-separator' )->text() . $action;
+               if ( !$this->irctext ) {
+                       $action = $performer .  $this->msg( 'word-separator' )->text() . $action;
+               }
+
+               return $action;
        }
 
 }