BUG 0000 adding a missing folder workflow/engine/bin/plugins
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,4 +1,3 @@
|
||||
.gitignore
|
||||
nbproject
|
||||
workflow/engine/config/paths_installed.php
|
||||
gulliver/thirdparty/html2ps_pdf/cache
|
||||
|
||||
@@ -243,24 +243,29 @@ function executePlugins(){
|
||||
global $sFilter;
|
||||
if($sFilter!='' && strpos($sFilter, 'plugins') === false) return false;
|
||||
|
||||
$pathCronPlugins = PATH_CORE.'bin'.PATH_SEP.'plugins'.PATH_SEP;
|
||||
if ($handle = opendir( $pathCronPlugins )) {
|
||||
while ( false !== ($file = readdir($handle))) {
|
||||
if ( strpos($file, '.php',1) && is_file($pathCronPlugins . $file) ) {
|
||||
$pathCronPlugins = PATH_CORE.'bin'.PATH_SEP.'plugins'.PATH_SEP;
|
||||
|
||||
//erik: verify if the plugin dir exists
|
||||
if (!is_dir($pathCronPlugins)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($handle = opendir( $pathCronPlugins )) {
|
||||
while ( false !== ($file = readdir($handle))) {
|
||||
if ( strpos($file, '.php',1) && is_file($pathCronPlugins . $file) ) {
|
||||
$filename = str_replace('.php' , '', $file) ;
|
||||
$className = $filename . 'ClassCron';
|
||||
|
||||
$filename = str_replace('.php' , '', $file) ;
|
||||
$className = $filename . 'ClassCron';
|
||||
|
||||
include_once ( $pathCronPlugins . $file ); //$filename. ".php"
|
||||
$oPlugin = new $className();
|
||||
if (method_exists($oPlugin, 'executeCron')) {
|
||||
$oPlugin->executeCron();
|
||||
setExecutionMessage("Executing Pentaho Reports Plugin");
|
||||
setExecutionResultMessage('DONE');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
include_once ( $pathCronPlugins . $file ); //$filename. ".php"
|
||||
$oPlugin = new $className();
|
||||
if (method_exists($oPlugin, 'executeCron')) {
|
||||
$oPlugin->executeCron();
|
||||
setExecutionMessage("Executing Pentaho Reports Plugin");
|
||||
setExecutionResultMessage('DONE');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
function calculateDuration() {
|
||||
global $sFilter;
|
||||
|
||||
1
workflow/engine/bin/plugins/.gitignore
vendored
Normal file
1
workflow/engine/bin/plugins/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
#some files to ignore
|
||||
Reference in New Issue
Block a user