Skip to content
Permalink
Browse files

Remove extra strtolower() calls.

  • Loading branch information...
markstory committed May 10, 2012
1 parent d669082 commit df84dac6950c640254ecd2780765eff3cf023ea5
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Cake/Routing/Route/Route.php
@@ -196,21 +196,21 @@ public function getName() {
}
$name = '';
if (isset($this->defaults['plugin'])) {
$name = strtolower($this->defaults['plugin']) . '.';
$name = $this->defaults['plugin'] . '.';
}
foreach (array('controller', 'action') as $key) {
if ($key === 'action') {
$name .= ':';
}
if (isset($this->defaults[$key])) {
$name .= strtolower($this->defaults[$key]);
$name .= $this->defaults[$key];
}
$var = ':' . $key;
if (strpos($this->template, $var) !== false) {
$name .= '_' . $key;
}
}
return $this->_name = $name;
return $this->_name = strtolower($name);
}
/**

0 comments on commit df84dac

Please sign in to comment.
You can’t perform that action at this time.