forked from mardix/Handlebars
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request XaminProject#29 from craigjbass/master
Fix bug using array $baseDirs
- Loading branch information
Showing
1 changed file
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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> | ||
|
@@ -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; | ||
|