diff --git a/workflow/engine/bin/cron.php b/workflow/engine/bin/cron.php index e9eb0eca7..c94808056 100755 --- a/workflow/engine/bin/cron.php +++ b/workflow/engine/bin/cron.php @@ -23,6 +23,7 @@ define('PATH_HOME', $pathhome); define('PATH_TRUNK', $pathTrunk); define('PATH_OUTTRUNK', $pathOutTrunk); +require_once PATH_TRUNK . "framework/src/Maveriks/Util/ClassLoader.php"; require_once (PATH_HOME . 'engine' . PATH_SEP . 'config' . PATH_SEP . 'paths.php'); require_once PATH_CORE . 'classes' . PATH_SEP . 'class.system.php'; diff --git a/workflow/engine/bin/cron_single.php b/workflow/engine/bin/cron_single.php index 6bf7f19b1..c82961d03 100755 --- a/workflow/engine/bin/cron_single.php +++ b/workflow/engine/bin/cron_single.php @@ -39,6 +39,7 @@ if (!defined('PATH_HOME')) { define('PATH_OUTTRUNK', $pathOutTrunk); require_once (PATH_HOME . 'engine' . PATH_SEP . 'config' . PATH_SEP . 'paths.php'); + require_once PATH_TRUNK . "framework/src/Maveriks/Util/ClassLoader.php"; G::LoadThirdParty('pear/json','class.json'); G::LoadThirdParty('smarty/libs','Smarty.class'); diff --git a/workflow/engine/classes/class.pluginRegistry.php b/workflow/engine/classes/class.pluginRegistry.php index d51baadc7..013134054 100755 --- a/workflow/engine/classes/class.pluginRegistry.php +++ b/workflow/engine/classes/class.pluginRegistry.php @@ -1495,5 +1495,15 @@ class PMPluginRegistry { $this->_restServiceEnabled[$sNamespace] = $enable; } + + /** + * Return all cron files registered + * + * @return array + */ + public function getCronFiles() + { + return $this->_aCronFiles; + } }