jenkins-bot has submitted this change and it was merged.

Change subject: Remove use of ResourceLoader::makeLoaderConditionalScript()
......................................................................


Remove use of ResourceLoader::makeLoaderConditionalScript()

Deprecated since MediaWiki 1.25. Use makeInlineScript() instead.

Change-Id: I9d5406e321297e01b490d54148cae58de173910b
---
M mwEmbedLoader.php
1 file changed, 2 insertions(+), 4 deletions(-)

Approvals:
  Jforrester: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/mwEmbedLoader.php b/mwEmbedLoader.php
index dbcc55f..ae03a3d 100644
--- a/mwEmbedLoader.php
+++ b/mwEmbedLoader.php
@@ -18,9 +18,7 @@
 }
 // Bootstrap some js code to make the "loader" work in stand alone tests:
 // Note this has to be wrapped in a document.write to run after other 
document.writes
-$pageStartupScript = Html::inlineScript(
-       ResourceLoader::makeLoaderConditionalScript(
-               Xml::encodeJsCall( 'mw.loader.go', array() )
-       )
+$pageStartupScript = ResourceLoader::makeInlineScript(
+       Xml::encodeJsCall( 'mw.loader.go', array() )
 );
 echo Xml::encodeJsCall( 'document.write', array( $pageStartupScript ) );

-- 
To view, visit https://gerrit.wikimedia.org/r/228168
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I9d5406e321297e01b490d54148cae58de173910b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/TimedMediaHandler
Gerrit-Branch: master
Gerrit-Owner: Krinkle <[email protected]>
Gerrit-Reviewer: Brion VIBBER <[email protected]>
Gerrit-Reviewer: Jforrester <[email protected]>
Gerrit-Reviewer: Ori.livneh <[email protected]>
Gerrit-Reviewer: TheDJ <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to