&$limit ) { foreach ( $limit as $group => &$groupLimit ) { $groupLimit[0] = PHP_INT_MAX; } } // Enable Special:JavaScriptTest and allow `npm run qunit` to work // https://www.mediawiki.org/wiki/Manual:JavaScript_unit_testing $wgEnableJavaScriptTest = true; // Enable development/experimental endpoints $wgRestAPIAdditionalRouteFiles = [ 'includes/Rest/coreDevelopmentRoutes.json' ]; /** * Experimental changes that may later become the default. * (Must reference a Phabricator ticket) */ global $wgSQLMode, $wgLocalisationCacheConf, $wgCacheDirectory, $wgEnableUploads, $wgCiteBookReferencing; // Enable MariaDB/MySQL strict mode (T108255) $wgSQLMode = 'TRADITIONAL'; // Localisation Cache to StaticArray (T218207) $wgLocalisationCacheConf['store'] = 'array'; // Experimental Book Referencing feature (T236255) $wgCiteBookReferencing = true; // The default value is false, but for development it is useful to set this to the system temp // directory by default (T218207) $wgCacheDirectory = TempFSFile::getUsableTempDirectory() . DIRECTORY_SEPARATOR . rawurlencode( WikiMap::getCurrentWikiId() ); // Enable uploads for FileImporter browser tests (T190829) $wgEnableUploads = true; // Enable the new wikitext mode for browser testing (T270240) $wgVisualEditorEnableWikitext = true; // Currently the default, but repeated here for safety since it would break many source editor tests. $wgDefaultUserOptions['visualeditor-newwikitext'] = 0;