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

This commit is contained in:
jenkins-bot 2024-02-17 03:23:36 +00:00 committed by Gerrit Code Review
commit d90ab2b724
2 changed files with 2 additions and 2 deletions

View file

@ -435,7 +435,7 @@ class Hooks implements
$out = $article->getContext()->getOutput();
$titleMsg = $title->exists() ? 'editing' : 'creating';
$out->setPageTitle( wfMessage( $titleMsg, $title->getPrefixedText() ) );
$out->setPageTitleMsg( wfMessage( $titleMsg, $title->getPrefixedText() ) );
$out->showPendingTakeover( $url, 'visualeditor-toload', wfExpandUrl( $url ) );
$out->setRevisionId( $req->getInt( 'oldid', $article->getRevIdFetched() ) );

View file

@ -137,7 +137,7 @@ class SpecialCollabPad extends SpecialPage {
if ( $subPage ) {
$title = Title::newFromText( $subPage );
$output->setPageTitle( $this->msg( 'collabpad-doctitle', $title->getPrefixedText() ) );
$output->setPageTitleMsg( $this->msg( 'collabpad-doctitle', $title->getPrefixedText() ) );
$form->addClasses( [ 'oo-ui-element-hidden' ] );
} else {
// Scripts only, styles already added above