https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112132
Revision: 112132
Author: nikerabbit
Date: 2012-02-22 18:56:14 +0000 (Wed, 22 Feb 2012)
Log Message:
-----------
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: trunk/phase3/includes/logging/LogFormatter.php
===================================================================
--- trunk/phase3/includes/logging/LogFormatter.php 2012-02-22 18:53:01 UTC
(rev 112131)
+++ trunk/phase3/includes/logging/LogFormatter.php 2012-02-22 18:56:14 UTC
(rev 112132)
@@ -171,6 +171,7 @@
*/
public function getIRCActionText() {
$this->plaintext = true;
+ $this->irctext = true;
$text = $this->getActionText();
$entry = $this->entry;
@@ -250,6 +251,7 @@
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 @@
);
$performer = $this->getPerformerElement();
- return $performer . $this->msg( 'word-separator' )->text() .
$action;
+ if ( !$this->irctext ) {
+ $action = $performer . $this->msg( 'word-separator'
)->text() . $action;
+ }
+
+ return $action;
}
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs