Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -1788,7 +1788,11 @@ |
1789 | 1789 | $sk = $wgUser->getSkin(); |
1790 | 1790 | |
1791 | 1791 | // Add base resources |
1792 | | - $this->addModules( array( 'mediawiki.legacy.wikibits', 'mediawiki.util' ) ); |
| 1792 | + $this->addModules( 'mediawiki.util' ); |
| 1793 | + global $wgIncludeLegacyJavaScript; |
| 1794 | + if( $wgIncludeLegacyJavaScript ){ |
| 1795 | + $this->addModules( 'mediawiki.legacy.wikibits' ); |
| 1796 | + } |
1793 | 1797 | |
1794 | 1798 | // Add various resources if required |
1795 | 1799 | if ( $wgUseAjax ) { |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -2499,6 +2499,12 @@ |
2500 | 2500 | */ |
2501 | 2501 | $wgResourceLoaderMinifyJSVerticalSpace = false; |
2502 | 2502 | |
| 2503 | +/** |
| 2504 | + * Whether to include the mediawiki.legacy JS library (old wikibits.js), and its |
| 2505 | + * dependencies |
| 2506 | + */ |
| 2507 | +$wgIncludeLegacyJavaScript = true; |
| 2508 | + |
2503 | 2509 | /** @} */ # End of resource loader settings } |
2504 | 2510 | |
2505 | 2511 | |