X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=blobdiff_plain;f=includes%2Fspecials%2Fpagers%2FAllMessagesTablePager.php;h=2e451ecd0ff66db49d4bd265bf4a140bc106b272;hb=90d4f56fe46140f9e97e2fa72698f98b57447fe5;hp=e6a0f0be51914ea6bdc8d5023c94c5ebd43bc5c7;hpb=1e8f417f3d6d648e19c03465890b58a331514362;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/pagers/AllMessagesTablePager.php b/includes/specials/pagers/AllMessagesTablePager.php index e6a0f0be51..2e451ecd0f 100644 --- a/includes/specials/pagers/AllMessagesTablePager.php +++ b/includes/specials/pagers/AllMessagesTablePager.php @@ -19,6 +19,7 @@ * @ingroup Pager */ +use MediaWiki\MediaWikiServices; use Wikimedia\Rdbms\FakeResultWrapper; /** @@ -27,8 +28,6 @@ use Wikimedia\Rdbms\FakeResultWrapper; * * @ingroup Pager */ -use MediaWiki\MediaWikiServices; - class AllMessagesTablePager extends TablePager { protected $filter, $prefix, $langcode, $displayPrefix; @@ -54,13 +53,12 @@ class AllMessagesTablePager extends TablePager { $this->mDefaultDirection = IndexPager::DIR_DESCENDING; $this->mLimitsShown = [ 20, 50, 100, 250, 500, 5000 ]; - global $wgContLang; - $this->talk = $this->msg( 'talkpagelinktext' )->escaped(); - $this->lang = ( $langObj ? $langObj : $wgContLang ); + $contLang = MediaWikiServices::getInstance()->getContentLanguage(); + $this->lang = $langObj ?: $contLang; $this->langcode = $this->lang->getCode(); - $this->foreign = !$this->lang->equals( $wgContLang ); + $this->foreign = !$this->lang->equals( $contLang ); $request = $this->getRequest(); @@ -357,7 +355,7 @@ class AllMessagesTablePager extends TablePager { $formatted = strval( $this->formatValue( 'am_actual', $row->am_actual ) ); if ( $formatted === '' ) { - $formatted = ' '; + $formatted = "\u{00A0}"; } $s .= Xml::tags( 'td', $this->getCellAttrs( 'am_actual', $row->am_actual ), $formatted )