Replace use of deprecated global URL functions with wfGetUrlUtils()

This is a quick fix rather than the proper DI fix.

Bug: T319340
Change-Id: Ib6cf08b551f2c20d481c8c6e93fed9d7284186ae
This commit is contained in:
James D. Forrester 2024-08-29 13:33:52 -04:00
parent 7326c768ed
commit 7b29f815eb

View file

@ -318,8 +318,8 @@ class SpecialInterwiki extends SpecialPage {
// Simple URL validation: check that the protocol is one of // Simple URL validation: check that the protocol is one of
// the supported protocols for this wiki. // the supported protocols for this wiki.
// (bug 30600) // (T32600)
if ( !wfParseUrl( $theurl ) ) { if ( !wfGetUrlUtils()->parse( $theurl ) ) {
$status->fatal( 'interwiki-submit-invalidurl' ); $status->fatal( 'interwiki-submit-invalidurl' );
break; break;
} }