RewriteBase /
RewriteRule ^(.*)\.php5 $1.php [R=301,L]
-* The global importScript and importStylesheet functions, as well as the loadedScripts object,
- from wikibits.js (deprecated since 1.17) now emit warnings through mw.log.warn when accessed.
+* The global importScriptURI and importStylesheetURI functions, as well as the
+ loadedScripts object, from wikibits.js (deprecated since 1.17) now emit
+ warnings through mw.log.warn when accessed.
== Compatibility ==
* Wikipage import methods
*
* See https://www.mediawiki.org/wiki/ResourceLoader/Legacy_JavaScript#wikibits.js
- *
- * @deprecated since 1.17 Use mw.loader instead. Warnings added in 1.26.
*/
function importScript( page ) {
return importScriptURI( uri );
}
+ /**
+ * @deprecated since 1.17 Use mw.loader instead. Warnings added in 1.25.
+ */
function importScriptURI( url ) {
if ( loadedScripts[url] ) {
return null;
return importStylesheetURI( uri );
}
+ /**
+ * @deprecated since 1.17 Use mw.loader instead. Warnings added in 1.25.
+ */
function importStylesheetURI( url, media ) {
var l = document.createElement( 'link' );
l.rel = 'stylesheet';
msg = 'Use mw.loader instead.';
mw.log.deprecate( win, 'loadedScripts', loadedScripts, msg );
- mw.log.deprecate( win, 'importScript', importScript, msg );
mw.log.deprecate( win, 'importScriptURI', importScriptURI, msg );
- mw.log.deprecate( win, 'importStylesheet', importStylesheet, msg );
mw.log.deprecate( win, 'importStylesheetURI', importStylesheetURI, msg );
+ // Not quite deprecated yet.
+ win.importScript = importScript;
+ win.importStylesheet = importStylesheet;
}( mediaWiki, jQuery ) );