Skip to content

Commit

Permalink
Removing more strtolower loops.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jul 10, 2010
1 parent b7310af commit 3ae1501
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cake/libs/model/model_behavior.php
Expand Up @@ -418,10 +418,6 @@ public function enabled($name = null) {
*/
public function dispatchMethod(&$model, $method, $params = array(), $strict = false) {
$methods = array_keys($this->__methods);
foreach ($methods as $key => $value) {
$methods[$key] = strtolower($value);
}
$method = strtolower($method);
$check = array_flip($methods);
$found = isset($check[$method]);
$call = null;
Expand Down

0 comments on commit 3ae1501

Please sign in to comment.