mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Interwiki
synced 2024-11-23 22:13:37 +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
|
||||
// the supported protocols for this wiki.
|
||||
// (bug 30600)
|
||||
if ( !wfParseUrl( $theurl ) ) {
|
||||
// (T32600)
|
||||
if ( !wfGetUrlUtils()->parse( $theurl ) ) {
|
||||
$status->fatal( 'interwiki-submit-invalidurl' );
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue