mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Interwiki
synced 2024-11-27 15:50:32 +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: Ib6cf08b551f2c20d481c8c6e93fed9d7284186ae
This commit is contained in:
parent
7326c768ed
commit
7b29f815eb
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue