We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8aac1bf commit fb01633Copy full SHA for fb01633
CssCrush/lib/Importer.php
@@ -55,10 +55,16 @@ public static function hostfile ( $hostfile ) {
55
}
56
57
$import = new stdClass;
58
- $import->name = $url;
+ $import->name = $url;
59
$import->mediaContext = $mediaContext;
60
- $import->path = "$hostfile->dir/$import->name";
61
- $import->content = @file_get_contents( $import->path );
+ if ( strpos( $import->name, '/' ) === 0 ) {
+ $import->path = $config->docRoot . $import->name;
62
+ }
63
+ else {
64
+ $import->path = "$hostfile->dir/$import->name";
65
66
+
67
+ $import->content = @file_get_contents( $import->path );
68
69
// Failed to open import, just continue with the import line removed
70
if ( !$import->content ) {
0 commit comments