Commit 9ec740ea by Alexander Makarov

Better alias check

parent 73045c83
...@@ -268,6 +268,6 @@ class ViewRenderer extends BaseViewRenderer ...@@ -268,6 +268,6 @@ class ViewRenderer extends BaseViewRenderer
public function aliasHandler($type, $name, &$content, &$modified, Smarty $smarty) public function aliasHandler($type, $name, &$content, &$modified, Smarty $smarty)
{ {
$file = Yii::getAlias($name); $file = Yii::getAlias($name);
return is_file($file) ? $file : false; return $file !== false && is_file($file) ? $file : false;
} }
} }
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