Оптимизация при слиянии путей

This commit is contained in:
CORP\phedor 2018-02-21 13:50:55 +03:00
parent 86a180123b
commit d63cb2913f
2 changed files with 2 additions and 2 deletions

View file

@ -287,7 +287,7 @@ class Path
$result [] = $parts->getParts();
}
// При обьединении ссылок можно обьеденить path, query, fragment
$path = implode(self::SEPARATOR, call_user_func_array('array_merge', $result));
$path = implode(self::SEPARATOR, self::optimize(call_user_func_array('array_merge', $result)));
$parts0->url['path'] = ($parts0->isAbsolute()) ? '/' . $path : $path;
return $parts0;
}