Commit cb5a8896 by Alexander Makarov

Fixed recursion

parent 5d6c314d
......@@ -72,7 +72,7 @@ class BaseUrl
public static function to($url = null, $absolute = false)
{
if (is_array($url) && isset($url[0]) || $url === '') {
return static::to($url, $absolute);
return static::toRoute($url, $absolute);
} else {
$url = Yii::getAlias($url);
if ($url !== '' && ($url[0] === '/' || $url[0] === '#' || strpos($url, '://') || !strncmp($url, './', 2))) {
......
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