Skip to content

Commit 0b7e833

Browse files
author
B7th
committed
dirname, not basename
1 parent 7a62265 commit 0b7e833

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Compiler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public function __construct()
165165
public function compile($code, $path = null)
166166
{
167167
if(is_file($code)){
168-
$this->setImportPaths(basename($code));
168+
$this->setImportPaths(dirname($code));
169169
$code=file_get_contents($code);
170170
}
171171
$locale = setlocale(LC_NUMERIC, 0);

0 commit comments

Comments
 (0)