From bb71303a814b27e0f8de9cfd49b22d573e0d0e77 Mon Sep 17 00:00:00 2001 From: "James D. Forrester" Date: Thu, 29 Aug 2024 13:35:09 -0400 Subject: [PATCH] Replace use of deprecated global URL functions with wfGetUrlUtils() This is a quick fix rather than the proper DI fix. Bug: T319340 Change-Id: I9e3bd0049b28efc634e1f394a487f86e27ef9e0d --- includes/Engines/LuaCommon/SiteLibrary.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Engines/LuaCommon/SiteLibrary.php b/includes/Engines/LuaCommon/SiteLibrary.php index 00c46731..bb5f7ebb 100644 --- a/includes/Engines/LuaCommon/SiteLibrary.php +++ b/includes/Engines/LuaCommon/SiteLibrary.php @@ -223,7 +223,7 @@ class SiteLibrary extends LibraryBase { $prefix = $row['iw_prefix']; $val = [ 'prefix' => $prefix, - 'url' => wfExpandUrl( $row['iw_url'], PROTO_RELATIVE ), + 'url' => wfGetUrlUtils()->expand( $row['iw_url'], PROTO_RELATIVE ) ?? false, 'isProtocolRelative' => substr( $row['iw_url'], 0, 2 ) === '//', 'isLocal' => isset( $row['iw_local'] ) && $row['iw_local'] == '1', 'isTranscludable' => isset( $row['iw_trans'] ) && $row['iw_trans'] == '1',