fix: [eventwarning] path fixed

- as spotted by @chrisr3d
pull/8216/head
iglocska 2022-03-15 12:54:55 +01:00
parent 98754783f6
commit 7c3181837b
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ class EventWarningBehavior extends ModelBehavior
$files = $dir->find('.*Warning\.php');
foreach ($files as $file) {
$className = substr($file, 0, -4);
$path = 'EventWarning/Custom';
$path = 'EventWarning' . $subDirPath;
App::uses($className, $path);
$this->__warningPackages[$className] = new $className();
}