* @ingroup Pager
*/
+use MediaWiki\MediaWikiServices;
use Wikimedia\Rdbms\FakeResultWrapper;
/**
*
* @ingroup Pager
*/
-use MediaWiki\MediaWikiServices;
-
class AllMessagesTablePager extends TablePager {
protected $filter, $prefix, $langcode, $displayPrefix;
$this->mDefaultDirection = IndexPager::DIR_DESCENDING;
$this->mLimitsShown = [ 20, 50, 100, 250, 500, 5000 ];
- global $wgContLang;
-
$this->talk = $this->msg( 'talkpagelinktext' )->escaped();
- $this->lang = $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();
$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 )