From 63601400e476c6cf43d985f3e7b9864681695ed4 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Fri, 18 Jan 2013 16:46:04 +0100 Subject: Update to MediaWiki 1.20.2 this update includes: * adjusted Arch Linux skin * updated FluxBBAuthPlugin * patch for https://bugzilla.wikimedia.org/show_bug.cgi?id=44024 --- includes/resourceloader/ResourceLoaderModule.php | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'includes/resourceloader/ResourceLoaderModule.php') diff --git a/includes/resourceloader/ResourceLoaderModule.php b/includes/resourceloader/ResourceLoaderModule.php index 1a232ec2..9c49c45f 100644 --- a/includes/resourceloader/ResourceLoaderModule.php +++ b/includes/resourceloader/ResourceLoaderModule.php @@ -1,5 +1,7 @@ '.foo { width: 0 }' ); + * or array( 'screen' => array( '.foo { width: 0 }' ) ); */ public function getStyles( ResourceLoaderContext $context ) { // Stub, override expected @@ -235,8 +239,8 @@ abstract class ResourceLoaderModule { /** * Where on the HTML page should this module's JS be loaded? - * 'top': in the - * 'bottom': at the bottom of the + * - 'top': in the "" + * - 'bottom': at the bottom of the "" * * @return string */ @@ -244,6 +248,17 @@ abstract class ResourceLoaderModule { return 'bottom'; } + /** + * Whether this module's JS expects to work without the client-side ResourceLoader module. + * Returning true from this function will prevent mw.loader.state() call from being + * appended to the bottom of the script. + * + * @return bool + */ + public function isRaw() { + return false; + } + /** * Get the loader JS for this module, if set. * -- cgit v1.2.3-54-g00ecf