Оптимизация при слиянии путей
This commit is contained in:
parent
86a180123b
commit
d63cb2913f
2 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
class Filter_Filter
|
class Filter_Filter
|
||||||
{
|
{
|
||||||
public $processor;
|
public $processor;
|
||||||
public function __construct(/*.Filter_Filter.*/$processor)
|
public function __construct(/*.Controller_Action.*/$processor)
|
||||||
{
|
{
|
||||||
$this->processor = $processor;
|
$this->processor = $processor;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -287,7 +287,7 @@ class Path
|
||||||
$result [] = $parts->getParts();
|
$result [] = $parts->getParts();
|
||||||
}
|
}
|
||||||
// При обьединении ссылок можно обьеденить path, query, fragment
|
// При обьединении ссылок можно обьеденить 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;
|
$parts0->url['path'] = ($parts0->isAbsolute()) ? '/' . $path : $path;
|
||||||
return $parts0;
|
return $parts0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue