mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Removing use of r() from core classes.
This commit is contained in:
parent
81865bc960
commit
24448775c2
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ class ConsoleShell extends Shell {
|
|||
App::import('Model', $this->models);
|
||||
|
||||
foreach ($this->models as $model) {
|
||||
$class = Inflector::camelize(r('.php', '', $model));
|
||||
$class = Inflector::camelize(str_replace('.php', '', $model));
|
||||
$this->models[$model] = $class;
|
||||
$this->{$class} =& new $class();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue