TheDJ has uploaded a new change for review. https://gerrit.wikimedia.org/r/248404
Change subject: Remove standalone mwEmbedLoader ...................................................................... Remove standalone mwEmbedLoader All MwEmbed code is now so tightly integrated, and RL has changed so much since then, this stand alone loader is broken beyond repair. Better get rid of it. Change-Id: I2a589d8fcb3a54420a4b189bc3b7ba719b0a1893 --- D mwEmbedLoader.php 1 file changed, 0 insertions(+), 24 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/TimedMediaHandler refs/changes/04/248404/1 diff --git a/mwEmbedLoader.php b/mwEmbedLoader.php deleted file mode 100644 index ae03a3d..0000000 --- a/mwEmbedLoader.php +++ /dev/null @@ -1,24 +0,0 @@ -<?php -// This is a stub entry point to load.php This is need to support valid paths for the stand alone -// mwEmbed module html test files. - -// This is useful for running stand alone test of mwEmbed components in the TimedMediaHandler -// extension. ( ie MwEmbedModules/EmbedPlayer/tests/*.html files ) - -$_GET['modules'] = 'startup'; -$_GET['only'] = 'scripts'; - -// NOTE this won't work so well with symbolic links -$loaderPath = dirname(__FILE__) . '/../../load.php'; -if( is_file( $loaderPath ) ){ - chdir( dirname( $loaderPath ) ); - include_once( $loaderPath ); -} else { - print "if( console && typeof console.log == 'function' ){ console.log('Error can't find load.php for stand alone tests' ) }"; -} -// 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 = ResourceLoader::makeInlineScript( - Xml::encodeJsCall( 'mw.loader.go', array() ) -); -echo Xml::encodeJsCall( 'document.write', array( $pageStartupScript ) ); -- To view, visit https://gerrit.wikimedia.org/r/248404 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I2a589d8fcb3a54420a4b189bc3b7ba719b0a1893 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/TimedMediaHandler Gerrit-Branch: master Gerrit-Owner: TheDJ <hartman.w...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits