Merge pull request #29 from craigjbass/master

Fix bug using array $baseDirs
This commit is contained in:
Behrooz Shabani 2013-11-14 21:26:41 -08:00
commit 4f0578c048

View File

@ -10,6 +10,8 @@
* @package Handlebars
* @author fzerorubigd <fzerorubigd@gmail.com>
* @author Behrooz Shabani <everplays@gmail.com>
* @author Craig Bass <craig@clearbooks.co.uk>
* @author ^^ <craig@devls.co.uk>
* @copyright 2012 (c) ParsPooyesh Co
* @copyright 2013 (c) Behrooz Shabani
* @license MIT <http://opensource.org/licenses/MIT>
@ -61,8 +63,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;