Followup to r92580 and r93820: r92580 duplicated the call to wfExpandUrl(), and r9382...
authorRoan Kattouw <catrope@users.mediawiki.org>
Sun, 14 Aug 2011 13:35:06 +0000 (13:35 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Sun, 14 Aug 2011 13:35:06 +0000 (13:35 +0000)
includes/libs/CSSMin.php

index dad98c3..4012b69 100644 (file)
@@ -135,10 +135,10 @@ class CSSMin {
                                // This will not be the case if we're running outside of MW
                                $lengthIncrease = 0;
                                if ( function_exists( 'wfExpandUrl' ) ) {
-                                       $expanded = wfExpandUrl( $match['file'][0] );
+                                       $expanded = wfExpandUrl( $match['file'][0], PROTO_RELATIVE );
                                        $origLength = strlen( $match['file'][0] );
                                        $lengthIncrease = strlen( $expanded ) - $origLength;
-                                       $source = substr_replace( $source, wfExpandUrl( $match['file'][0], PROTO_RELATIVE ),
+                                       $source = substr_replace( $source, $expanded,
                                                $match['file'][1], $origLength
                                        );
                                }