mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-12-01 01:16:38 +00:00
refactor(core): ♻️ deprecate wfExpandUrl in favor of UrlUtils
Related: T319340
This commit is contained in:
parent
90890de53f
commit
497f2e6058
|
@ -26,6 +26,7 @@ declare( strict_types=1 );
|
||||||
namespace MediaWiki\Skins\Citizen\Partials;
|
namespace MediaWiki\Skins\Citizen\Partials;
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
|
use MediaWiki\MediaWikiServices;
|
||||||
|
|
||||||
final class Metadata extends Partial {
|
final class Metadata extends Partial {
|
||||||
|
|
||||||
|
@ -52,8 +53,8 @@ final class Metadata extends Partial {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$href =
|
$href = MediaWikiServices::getInstance()->getUrlUtils()
|
||||||
wfExpandUrl( wfAppendQuery( wfScript( 'api' ),
|
->expand( wfAppendQuery( wfScript( 'api' ),
|
||||||
[ 'action' => 'webapp-manifest' ] ), PROTO_RELATIVE );
|
[ 'action' => 'webapp-manifest' ] ), PROTO_RELATIVE );
|
||||||
} catch ( Exception $e ) {
|
} catch ( Exception $e ) {
|
||||||
$href = '';
|
$href = '';
|
||||||
|
|
Loading…
Reference in a new issue