Skip to content

Commit 9bd1750

Browse files
author
Eugene Matvejev
authored
Merge pull request #10 from eugene-matvejev/rc1-php5
RC1 fix directory
2 parents 8ea3bb6 + dcb90ea commit 9bd1750

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ScriptHandler.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ public static function compileCSS(Event $event)
2626
}
2727

2828
$processor = new Processor($event->getIO());
29-
29+
$prefix = getcwd();
3030
foreach ($configs as $config) {
3131
if (!is_array($config)) {
3232
throw new \InvalidArgumentException('The extra.css-compiler should contain only configuration objects.');
3333
}
3434

3535
foreach ($config['input'] as $item => $value) {
36-
$processor->attachFiles(__DIR__ . "/{$value}", __DIR__ . "/{$config['output']}");
36+
$processor->attachFiles("{$prefix}/{$value}", "{$prefix}/{$config['output']}");
3737
}
3838

3939
$processor->processFiles(isset($config['format']) ? $config['format'] : 'compact');

0 commit comments

Comments
 (0)