mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Controller $name set optimization
This commit is contained in:
parent
0443fe1507
commit
33ab634aba
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue