mirror of
https://github.com/Mibew/handlebars.php.git
synced 2025-05-02 10:16:41 +03:00
parent
89f0c00790
commit
ecbfa8f383
@ -51,15 +51,15 @@ class Handlebars_Loader_FilesystemLoader implements Handlebars_Loader
|
|||||||
*/
|
*/
|
||||||
public function __construct($baseDirs, array $options = array())
|
public function __construct($baseDirs, array $options = array())
|
||||||
{
|
{
|
||||||
if (is_string($baseDir)) {
|
if (is_string($baseDirs)) {
|
||||||
$baseDir = array(rtrim(realpath($baseDir), '/'));
|
$baseDirs = array(rtrim(realpath($baseDir), '/'));
|
||||||
} else {
|
} else {
|
||||||
foreach ($baseDir as &$dir) {
|
foreach ($baseDirs as &$dir) {
|
||||||
$dir = array(rtrim(realpath($dir), '/'));
|
$dir = array(rtrim(realpath($dir), '/'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->_baseDir = $baseDir;
|
$this->_baseDir = $baseDirs;
|
||||||
|
|
||||||
foreach ($this->_baseDir as $dir) {
|
foreach ($this->_baseDir as $dir) {
|
||||||
if (!is_dir($dir)) {
|
if (!is_dir($dir)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user