refactor(core): ♻️ deprecate wfExpandUrl in favor of UrlUtils

Related: T319340
This commit is contained in:
alistair3149 2023-03-27 14:45:08 -04:00
parent 90890de53f
commit 497f2e6058
No known key found for this signature in database

View file

@ -26,6 +26,7 @@ declare( strict_types=1 );
namespace MediaWiki\Skins\Citizen\Partials;
use Exception;
use MediaWiki\MediaWikiServices;
final class Metadata extends Partial {
@ -52,8 +53,8 @@ final class Metadata extends Partial {
}
try {
$href =
wfExpandUrl( wfAppendQuery( wfScript( 'api' ),
$href = MediaWikiServices::getInstance()->getUrlUtils()
->expand( wfAppendQuery( wfScript( 'api' ),
[ 'action' => 'webapp-manifest' ] ), PROTO_RELATIVE );
} catch ( Exception $e ) {
$href = '';