Skip to content

Commit

Permalink
Merge pull request XaminProject#29 from craigjbass/master
Browse files Browse the repository at this point in the history
Fix bug using array $baseDirs
  • Loading branch information
everplays committed Nov 15, 2013
2 parents c7ee33a + df1d4fb commit 4f0578c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Handlebars/Loader/FilesystemLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
* @package Handlebars
* @author fzerorubigd <[email protected]>
* @author Behrooz Shabani <[email protected]>
* @author Craig Bass <[email protected]>
* @author ^^ <[email protected]>
* @copyright 2012 (c) ParsPooyesh Co
* @copyright 2013 (c) Behrooz Shabani
* @license MIT <http://opensource.org/licenses/MIT>
Expand Down Expand Up @@ -61,8 +63,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 4f0578c

Please sign in to comment.