Add a title for single page view

Follow up to I70fde2676ded6a112f7f2b07f94f6f4b616f0e39

Bug: T151362
Change-Id: I21b8b9085f13480075e0b572f38ec9a05a398f01
This commit is contained in:
Arlo Breault 2022-01-10 15:16:04 -05:00
parent 31bc33b578
commit f821fa7f47

View file

@ -96,6 +96,7 @@ class SpecialLintErrors extends SpecialPage {
$pageName = $params['pagename'] ?? null;
if ( $par === null && $pageName !== null ) {
$out = $this->getOutput();
$out->setPageTitle( $this->msg( 'linterrors-subpage', $pageName ) );
$title = Title::newFromText( $pageName );
if ( $title !== null ) {