r80768 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80767‎ | r80768 | r80769 >
Date:20:39, 22 January 2011
Author:ialex
Status:ok
Tags:
Comment:
Much easier check (and not hacky)
Modified paths:
  • /trunk/extensions/LiquidThreads/classes/LogFormatter.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LiquidThreads/classes/LogFormatter.php
@@ -2,12 +2,6 @@
33
44 // Contains formatter functions for all log entry types.
55 class LqtLogFormatter {
6 - protected static function isForIRC( ) {
7 - // FIXME this is a horrific hack, but it's better than spewing HTML in the wrong
8 - // language to IRC.
9 - return in_string( '/LogPage::addEntry/', wfGetAllCallers() );
10 - }
11 -
126 static function formatLogEntry( $type, $action, $title, $sk, $parameters ) {
137 switch( $action ) {
148 case 'merge':
@@ -24,7 +18,7 @@
2519
2620 $options = array( 'parseinline' );
2721
28 - $forIRC = self::isForIRC();
 22+ $forIRC = $sk === null;
2923
3024 if ( $forIRC ) {
3125 global $wgContLang;

Status & tagging log