mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Fixed this following error: failed to open stream: No such file or directory [CORE\Cake\Model\Behavior\AclBehavior.php, line 52]
This commit is contained in:
parent
40c397b003
commit
8a701f3ac9
1 changed files with 2 additions and 3 deletions
|
@ -18,6 +18,7 @@
|
|||
* @since CakePHP v 1.2.0.4487
|
||||
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
||||
*/
|
||||
App::uses('AclNode', 'Model');
|
||||
|
||||
/**
|
||||
* ACL behavior
|
||||
|
@ -48,9 +49,7 @@ class AclBehavior extends ModelBehavior {
|
|||
$this->settings[$model->name]['type'] = strtolower($this->settings[$model->name]['type']);
|
||||
|
||||
$types = $this->__typeMaps[$this->settings[$model->name]['type']];
|
||||
if (!class_exists('AclNode')) {
|
||||
require CAKE . 'model' . DS . 'db_acl.php';
|
||||
}
|
||||
|
||||
if (!is_array($types)) {
|
||||
$types = array($types);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue