mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-12 00:58:44 +00:00
Merge "Use OutputPage::setPageTitleMsg() instead of ::setPageTitle()"
This commit is contained in:
commit
d90ab2b724
|
@ -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() ) );
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue