Index: trunk/extensions/LiquidThreads/classes/LogFormatter.php |
— | — | @@ -2,12 +2,6 @@ |
3 | 3 | |
4 | 4 | // Contains formatter functions for all log entry types. |
5 | 5 | 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 | | - |
12 | 6 | static function formatLogEntry( $type, $action, $title, $sk, $parameters ) { |
13 | 7 | switch( $action ) { |
14 | 8 | case 'merge': |
— | — | @@ -24,7 +18,7 @@ |
25 | 19 | |
26 | 20 | $options = array( 'parseinline' ); |
27 | 21 | |
28 | | - $forIRC = self::isForIRC(); |
| 22 | + $forIRC = $sk === null; |
29 | 23 | |
30 | 24 | if ( $forIRC ) { |
31 | 25 | global $wgContLang; |