diff --git a/includes/logging/LogFormatter.php b/includes/logging/LogFormatter.php index 9c2fdd354a7..119492be8c8 100644 --- a/includes/logging/LogFormatter.php +++ b/includes/logging/LogFormatter.php @@ -193,6 +193,8 @@ class LogFormatter { * @return string Text */ public function getIRCActionText() { + global $wgContLang; + $this->plaintext = true; $this->irctext = true; @@ -338,7 +340,6 @@ class LogFormatter { case 'block': switch ( $entry->getSubtype() ) { case 'block': - global $wgContLang; // Keep compatibility with extensions by checking for // new key (5::duration/6::flags) or old key (0/optional 1) if ( $entry->isLegacy() ) { @@ -358,7 +359,6 @@ class LogFormatter { ->rawParams( $target )->inContentLanguage()->escaped(); break; case 'reblock': - global $wgContLang; $duration = $wgContLang->translateBlockExpiry( $parameters['5::duration'] ); $flags = BlockLogFormatter::formatBlockFlags( $parameters['6::flags'], $wgContLang ); $text = wfMessage( 'reblock-logentry' ) diff --git a/includes/logging/LogPager.php b/includes/logging/LogPager.php index bf489ab9aa1..c4ce7b3e9e3 100644 --- a/includes/logging/LogPager.php +++ b/includes/logging/LogPager.php @@ -192,7 +192,7 @@ class LogPager extends ReverseChronologicalPager { * @return void */ private function limitTitle( $page, $pattern ) { - global $wgMiserMode; + global $wgMiserMode, $wgUserrightsInterwikiDelimiter; if ( $page instanceof Title ) { $title = $page; @@ -209,7 +209,6 @@ class LogPager extends ReverseChronologicalPager { $doUserRightsLogLike = false; if ( $this->types == array( 'rights' ) ) { - global $wgUserrightsInterwikiDelimiter; $parts = explode( $wgUserrightsInterwikiDelimiter, $title->getDBKey() ); if ( count( $parts ) == 2 ) { list( $name, $database ) = array_map( 'trim', $parts );