Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #588 from shama/patch-controller-optimization

Controller $name set optimization
  • Loading branch information...
commit 349c1755d8334c0b3de66e9db1d6cab5d74154b0 2 parents 0443fe1 + 33ab634
@ADmad ADmad authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Cake/Controller/Controller.php
View
2  lib/Cake/Controller/Controller.php
@@ -316,7 +316,7 @@ class Controller extends Object implements CakeEventListener {
*/
public function __construct($request = null, $response = null) {
if ($this->name === null) {
- $this->name = substr(get_class($this), 0, strlen(get_class($this)) - 10);
+ $this->name = substr(get_class($this), 0, -10);
}
if ($this->viewPath == null) {
Please sign in to comment.
Something went wrong with that request. Please try again.