Browse Source

Merge pull request #9472 from schojniak/GroupUrlRule

GroupUrlRule: if $this->routePrefix is unset then only one trim is called
tags/2.0.7
Dmitry Naumenko 9 years ago
parent
commit
ccaa6efdc7
  1. 5
      framework/web/GroupUrlRule.php

5
framework/web/GroupUrlRule.php

@ -77,11 +77,8 @@ class GroupUrlRule extends CompositeUrlRule
*/
public function init()
{
if ($this->routePrefix === null) {
$this->routePrefix = $this->prefix;
}
$this->prefix = trim($this->prefix, '/');
$this->routePrefix = trim($this->routePrefix, '/');
$this->routePrefix = $this->routePrefix === null ? $this->prefix : trim($this->routePrefix, '/');
parent::init();
}

Loading…
Cancel
Save