Commit e2b2326e by Alexander Makarov

Added string check to Twig renderer alias auto adding

parent 5903f6ec
......@@ -146,7 +146,7 @@ class ViewRenderer extends BaseViewRenderer
$loader = new \Twig_Loader_Filesystem(dirname($file));
foreach (Yii::$aliases as $alias => $path) {
if (is_dir($path)) {
if (is_string($path) && is_dir($path)) {
$loader->addPath($path, substr($alias, 1));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment