Skip to content

Commit

Permalink
Fix bug using array $baseDir
Browse files Browse the repository at this point in the history
* Corrected issue resulting from array constructor
* Corrected issue resulting from invalid clean-up of references
  • Loading branch information
Craig Bass committed Nov 14, 2013
1 parent c7ee33a commit 3ee0e13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Handlebars/Loader/FilesystemLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ public function __construct($baseDirs, array $options = array())
$baseDirs = array(rtrim(realpath($baseDirs), '/'));
} else {
foreach ($baseDirs as &$dir) {
$dir = array(rtrim(realpath($dir), '/'));
}
$dir = rtrim(realpath($dir), '/');
} unset( $dir );
}

$this->_baseDir = $baseDirs;
Expand Down

0 comments on commit 3ee0e13

Please sign in to comment.