Skip to content

Commit

Permalink
Fix MW 1.36 deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
malberts committed Dec 29, 2021
1 parent 36d723f commit c581605
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/ResourceFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,12 @@ public static function placeholder() {
public static function encode( $id, $data ) {
ResourceManager::requireHeadItem(
$id,
\Skin::makeVariablesScript(
[
$id => json_encode( $data )
],
\ResourceLoader::makeInlineScript(
\ResourceLoader::makeConfigSetScript(
[
$id => json_encode( $data )
]
),
false
)
);
Expand Down

0 comments on commit c581605

Please sign in to comment.