Accept ResourceLoader URLs containing '!' in '.' for backwards compatibility with a hack that existed in MediaWiki at some point (was in trunk and 1.17wmf1 but never in any release). This is needed because Squid-cached HTML at Wikimedia still contains such URLs.
This commit is contained in:
parent
f2553a0c58
commit
7ef9760879
1 changed files with 2 additions and 0 deletions
|
|
@ -73,6 +73,8 @@ class ResourceLoaderContext {
|
|||
*/
|
||||
public static function expandModuleNames( $modules ) {
|
||||
$retval = array();
|
||||
// For backwards compatibility with an earlier hack, replace ! with .
|
||||
$modules = str_replace( '!', '.', $modules );
|
||||
$exploded = explode( '|', $modules );
|
||||
foreach ( $exploded as $group ) {
|
||||
if ( strpos( $group, ',' ) === false ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue