Include $IP in path passed to remap() so filesystem access will work properly
authorRoan Kattouw <catrope@users.mediawiki.org>
Wed, 20 Oct 2010 19:13:43 +0000 (19:13 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Wed, 20 Oct 2010 19:13:43 +0000 (19:13 +0000)
includes/resourceloader/ResourceLoaderFileModule.php

index 18e820a..9e2044c 100644 (file)
@@ -386,7 +386,7 @@ class ResourceLoaderFileModule extends ResourceLoaderModule {
                global $wgScriptPath, $IP;
                
                return CSSMin::remap(
-                       file_get_contents( "$IP/$path" ), dirname( $path ), $wgScriptPath . '/' . dirname( $path ), true
+                       file_get_contents( "$IP/$path" ), dirname( "$IP/$path" ), $wgScriptPath . '/' . dirname( $path ), true
                );
        }