mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-23 22:13:34 +00:00
Replace use of deprecated global URL functions with wfGetUrlUtils()
This is a quick fix rather than the proper DI fix. Bug: T319340 Change-Id: Iea0d8a6b34aa4aea1c325868365d2bb65fa65eed
This commit is contained in:
parent
471e84a0d9
commit
6d527b9f0a
|
@ -409,7 +409,7 @@ class Hooks implements
|
|||
$out = $article->getContext()->getOutput();
|
||||
$titleMsg = $title->exists() ? 'editing' : 'creating';
|
||||
$out->setPageTitleMsg( wfMessage( $titleMsg, $title->getPrefixedText() ) );
|
||||
$out->showPendingTakeover( $url, 'visualeditor-toload', wfExpandUrl( $url ) );
|
||||
$out->showPendingTakeover( $url, 'visualeditor-toload', wfGetUrlUtils()->expand( $url ) );
|
||||
|
||||
$out->setRevisionId( $req->getInt( 'oldid', $article->getRevIdFetched() ) );
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue