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:
James D. Forrester 2024-08-28 15:10:21 -04:00
parent 471e84a0d9
commit 6d527b9f0a

View file

@ -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;