Index: trunk/phase3/includes/resourceloader/ResourceLoaderFileModule.php |
— | — | @@ -464,12 +464,13 @@ |
465 | 465 | } |
466 | 466 | $styles = self::collateFilePathListByOption( $styles, 'media', 'all' ); |
467 | 467 | foreach ( $styles as $media => $files ) { |
| 468 | + $uniqueFiles = array_unique( $files ); |
468 | 469 | $styles[$media] = implode( |
469 | 470 | "\n", |
470 | 471 | array_map( |
471 | 472 | array( $this, 'readStyleFile' ), |
472 | | - array_unique( $files ), |
473 | | - array( $flip ) |
| 473 | + $uniqueFiles, |
| 474 | + array_fill( 0, count( $uniqueFiles ), $flip ) |
474 | 475 | ) |
475 | 476 | ); |
476 | 477 | } |