Index: trunk/phase3/includes/resourceloader/ResourceLoaderFileModule.php |
— | — | @@ -493,8 +493,13 @@ |
494 | 494 | if ( $flip ) { |
495 | 495 | $style = CSSJanus::transform( $style, true, false ); |
496 | 496 | } |
497 | | - $dir = $this->getLocalPath( dirname( $path ) ); |
498 | | - $remoteDir = $this->getRemotePath( dirname( $path ) ); |
| 497 | + $dirname = dirname( $path ); |
| 498 | + if ( $dirname == '.' ) { |
| 499 | + // If $path doesn't have a directory component, don't prepend a dot |
| 500 | + $dirname = ''; |
| 501 | + } |
| 502 | + $dir = $this->getLocalPath( $dirname ); |
| 503 | + $remoteDir = $this->getRemotePath( $dirname ); |
499 | 504 | // Get and register local file references |
500 | 505 | $this->localFileRefs = array_merge( |
501 | 506 | $this->localFileRefs, |