http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97607

Revision: 97607
Author:   catrope
Date:     2011-09-20 09:13:41 +0000 (Tue, 20 Sep 2011)
Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/phase3/includes/resourceloader/ResourceLoaderContext.php

Modified: trunk/phase3/includes/resourceloader/ResourceLoaderContext.php
===================================================================
--- trunk/phase3/includes/resourceloader/ResourceLoaderContext.php      
2011-09-20 08:56:33 UTC (rev 97606)
+++ trunk/phase3/includes/resourceloader/ResourceLoaderContext.php      
2011-09-20 09:13:41 UTC (rev 97607)
@@ -73,6 +73,8 @@
         */
        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 ) {


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to