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
|
nbproject
|
||||||
workflow/engine/config/paths_installed.php
|
workflow/engine/config/paths_installed.php
|
||||||
gulliver/thirdparty/html2ps_pdf/cache
|
gulliver/thirdparty/html2ps_pdf/cache
|
||||||
|
|||||||
@@ -243,24 +243,29 @@ function executePlugins(){
|
|||||||
global $sFilter;
|
global $sFilter;
|
||||||
if($sFilter!='' && strpos($sFilter, 'plugins') === false) return false;
|
if($sFilter!='' && strpos($sFilter, 'plugins') === false) return false;
|
||||||
|
|
||||||
$pathCronPlugins = PATH_CORE.'bin'.PATH_SEP.'plugins'.PATH_SEP;
|
$pathCronPlugins = PATH_CORE.'bin'.PATH_SEP.'plugins'.PATH_SEP;
|
||||||
if ($handle = opendir( $pathCronPlugins )) {
|
|
||||||
while ( false !== ($file = readdir($handle))) {
|
//erik: verify if the plugin dir exists
|
||||||
if ( strpos($file, '.php',1) && is_file($pathCronPlugins . $file) ) {
|
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) ;
|
include_once ( $pathCronPlugins . $file ); //$filename. ".php"
|
||||||
$className = $filename . 'ClassCron';
|
$oPlugin = new $className();
|
||||||
|
if (method_exists($oPlugin, 'executeCron')) {
|
||||||
include_once ( $pathCronPlugins . $file ); //$filename. ".php"
|
$oPlugin->executeCron();
|
||||||
$oPlugin = new $className();
|
setExecutionMessage("Executing Pentaho Reports Plugin");
|
||||||
if (method_exists($oPlugin, 'executeCron')) {
|
setExecutionResultMessage('DONE');
|
||||||
$oPlugin->executeCron();
|
}
|
||||||
setExecutionMessage("Executing Pentaho Reports Plugin");
|
}
|
||||||
setExecutionResultMessage('DONE');
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
function calculateDuration() {
|
function calculateDuration() {
|
||||||
global $sFilter;
|
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