BUG 8224 "Al crear un nuevo trigger salen warnings" SOLVED
- when looping for add and register pmfunction classes like zimbra and others a directory was trying to read as file, so validating that the problem is fixed
This commit is contained in:
@@ -34,18 +34,21 @@ class triggerLibrary {
|
||||
$aAvailablePmFunctions = $oPluginRegistry->getPmFunctions ();
|
||||
foreach ( $aAvailablePmFunctions as $key => $class ) {
|
||||
$filePlugin = PATH_PLUGINS . $class . PATH_SEP . 'classes' . PATH_SEP . 'class.pmFunctions.php';
|
||||
if (file_exists ( $filePlugin ))
|
||||
|
||||
if ( file_exists($filePlugin) && !is_dir($filePlugin)) {
|
||||
$this->registerFunctionsFileToLibrary ( $filePlugin, "ProcessMaker Functions" );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
//Add External Triggers
|
||||
$dir = G::ExpandPath( "classes" ).'triggers';
|
||||
$filesArray = array();
|
||||
|
||||
if (file_exists($dir)){
|
||||
if ($handle = opendir($dir)) {
|
||||
while (false !== ($file = readdir($handle))) {
|
||||
if(($file!=".")&&($file!="..")){
|
||||
if( $file != "." && $file != ".." && !is_dir($dir . PATH_SEP . $file)){
|
||||
$this->registerFunctionsFileToLibrary( $dir . PATH_SEP . $file, "ProcessMaker External Functions");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user