if ( is_string( $deprecationInfo ) ) {
$warning .= "\n" . $deprecationInfo;
}
- return Xml::encodeJsCall(
- 'mw.log.warn',
- [ $warning ]
- );
+ return 'mw.log.warn(' . ResourceLoader::encodeJsonForScript( $warning ) . ');';
} else {
return '';
}
$cache = MediaWikiServices::getInstance()->getMainWANObjectCache();
return $cache->getWithSetCallback(
$cache->makeGlobalKey(
- 'resourceloader',
- 'jsparse',
+ 'resourceloader-jsparse',
self::$parseCacheVersion,
md5( $contents ),
$fileName