r112132 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112131‎ | r112132 | r112133 >
Date:18:56, 22 February 2012
Author:nikerabbit
Status:resolved
Tags:
Comment:
Uglier than ugly hack to fix block log any many others by not having the username prepended on the messages
Modified paths:
  • /trunk/phase3/includes/logging/LogFormatter.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/logging/LogFormatter.php
@@ -171,6 +171,7 @@
172172 */
173173 public function getIRCActionText() {
174174 $this->plaintext = true;
 175+ $this->irctext = true;
175176 $text = $this->getActionText();
176177
177178 $entry = $this->entry;
@@ -250,6 +251,7 @@
251252 break;
252253 }
253254 break;
 255+
254256
255257 // case 'suppress' --private log -- aaron (sign your messages so we know who to blame in a few years :-D)
256258 // default:
@@ -522,7 +524,11 @@
523525 );
524526
525527 $performer = $this->getPerformerElement();
526 - return $performer . $this->msg( 'word-separator' )->text() . $action;
 528+ if ( !$this->irctext ) {
 529+ $action = $performer . $this->msg( 'word-separator' )->text() . $action;
 530+ }
 531+
 532+ return $action;
527533 }
528534
529535 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r112133Followup, restore the irctext variable just in vase, ping r112132nikerabbit19:01, 22 February 2012
r112136MFT r112132, r112133aaron19:12, 22 February 2012

Status & tagging log