mirror of https://github.com/MISP/MISP
parent
98754783f6
commit
7c3181837b
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue