mirror of
https://github.com/Mibew/handlebars.php.git
synced 2024-11-15 08:44:12 +03:00
Fix bug using array $baseDir
* Corrected issue resulting from array constructor * Corrected issue resulting from invalid clean-up of references
This commit is contained in:
parent
c7ee33a84d
commit
3ee0e13caf
@ -61,8 +61,8 @@ class FilesystemLoader implements Loader
|
||||
$baseDirs = array(rtrim(realpath($baseDirs), '/'));
|
||||
} else {
|
||||
foreach ($baseDirs as &$dir) {
|
||||
$dir = array(rtrim(realpath($dir), '/'));
|
||||
}
|
||||
$dir = rtrim(realpath($dir), '/');
|
||||
} unset( $dir );
|
||||
}
|
||||
|
||||
$this->_baseDir = $baseDirs;
|
||||
|
Loading…
Reference in New Issue
Block a user