MediaWiki  1.23.15
load.mock.php
Go to the documentation of this file.
1 <?php
25 header( 'Content-Type: text/javascript; charset=utf-8' );
26 
27 require_once __DIR__ . '/../../../includes/json/FormatJson.php';
28 require_once __DIR__ . '/../../../includes/Xml.php';
29 
31  'testUsesMissing' => "
32 mw.loader.implement( 'testUsesMissing', function () {
33  QUnit.ok( false, 'Module test.usesMissing script should not run.');
34  QUnit.start();
35 }, {}, {});
36 ",
37 
38  'testUsesNestedMissing' => "
39 mw.loader.implement( 'testUsesNestedMissing', function () {
40  QUnit.ok( false, 'Module testUsesNestedMissing script should not run.');
41 }, {}, {});
42 ",
43 );
44 
45 $response = '';
46 
47 // Only support for non-encoded module names, full module names expected
48 if ( isset( $_GET['modules'] ) ) {
49  $modules = explode( ',', $_GET['modules'] );
50  foreach ( $modules as $module ) {
51  if ( isset( $moduleImplementations[$module] ) ) {
53  } else {
54  $response .= Xml::encodeJsCall( 'mw.loader.state', array( $module, 'missing' ), true );
55  }
56  }
57 }
58 
59 echo $response;
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
Xml\encodeJsCall
static encodeJsCall( $name, $args, $pretty=false)
Create a call to a JavaScript function.
Definition: Xml.php:665
array
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
$moduleImplementations
$moduleImplementations
Definition: load.mock.php:30
as
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
Definition: distributors.txt:9
$response
$response
Definition: load.mock.php:45