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

Bug: T343994
Depends-On: I384a12bdb66dfc8fa6650e76e27c671fae5163d6
Change-Id: I1464c9f7db3b30ad9bb12377cc39cfcd5d540f78
This commit is contained in:
C. Scott Ananian 2023-08-10 10:02:39 -04:00
parent c50d129b02
commit 26aeebd301
3 changed files with 3 additions and 3 deletions

View file

@ -118,7 +118,7 @@ class SpecialDisplayNotificationsConfiguration extends UnlistedSpecialPage {
$notificationTypes
);
$this->getOutput()->setPageTitle( $this->msg( 'echo-displaynotificationsconfiguration' )->text() );
$this->getOutput()->setPageTitleMsg( $this->msg( 'echo-displaynotificationsconfiguration' ) );
$this->outputHeader( 'echo-displaynotificationsconfiguration-summary' );
$this->outputConfiguration();
}

View file

@ -29,7 +29,7 @@ class SpecialNotifications extends SpecialPage {
$this->setHeaders();
$out = $this->getOutput();
$out->setPageTitle( $this->msg( 'echo-specialpage' )->text() );
$out->setPageTitleMsg( $this->msg( 'echo-specialpage' ) );
$this->addHelpLink( 'Help:Notifications/Special:Notifications' );

View file

@ -28,7 +28,7 @@ class SpecialNotificationsMarkRead extends FormSpecialPage {
parent::execute( $par );
$out = $this->getOutput();
$out->setPageTitle( $this->msg( 'echo-specialpage-markasread' )->text() );
$out->setPageTitleMsg( $this->msg( 'echo-specialpage-markasread' ) );
// Redirect to login page and inform user of the need to login
$this->requireLogin( 'echo-notification-loginrequired' );