Merge "Use OutputPage::setPageTitleMsg() instead of ::setPageTitle()"

This commit is contained in:
jenkins-bot 2024-02-17 02:36:03 +00:00 committed by Gerrit Code Review
commit c1cf86af3b

View file

@ -226,7 +226,7 @@ class SpecialLintErrors extends SpecialPage {
$titleSearch = $this->cleanTitle( $title, $namespaces );
if ( $titleSearch[ 'titlefield' ] !== null ) {
$out->setPageTitle( $this->msg( 'linter-prefix-search-subpage', $titleSearch[ 'titlefield' ] ) );
$out->setPageTitleMsg( $this->msg( 'linter-prefix-search-subpage', $titleSearch[ 'titlefield' ] ) );
$catManager = new CategoryManager();
$pager = new LintErrorsPager(
@ -250,7 +250,7 @@ class SpecialLintErrors extends SpecialPage {
$this->showCategoryListings( $catManager );
} else {
$this->addHelpLink( "Help:Extension:Linter/{$this->category}" );
$out->setPageTitle(
$out->setPageTitleMsg(
$this->msg( 'linterrors-subpage',
$this->msg( "linter-category-{$this->category}" )->text()
)