Fixing Bpmn::getEvent()

This commit is contained in:
Erik Amaru Ortiz
2014-02-11 17:50:14 -04:00
parent f4bca968b8
commit ea1f82ed3e
4 changed files with 29 additions and 12 deletions

View File

@@ -884,6 +884,20 @@ try {
$RBAC = &RBAC::getSingleton( PATH_DATA, session_id() );
$RBAC->sSystem = 'PROCESSMAKER';
if (\System::isDebugMode()) {
$applicationAspectKernel = \Kernel\ApplicationAspectKernel::getInstance();
$applicationAspectKernel->init(array(
'debug' => true, // Use 'false' for production mode
// Cache directory
'cacheDir' => sys_get_temp_dir() . DIRECTORY_SEPARATOR, // Adjust this path if needed
// Include paths restricts the directories where aspects should be applied, or empty for all source files
'includePaths' => array(
PATH_HOME . 'engine/src/'
)
));
}
// define and send Headers for all pages
if (! defined( 'EXECUTE_BY_CRON' )) {
header( "Expires: " . gmdate( "D, d M Y H:i:s", mktime( 0, 0, 0, date( 'm' ), date( 'd' ) - 1, date( 'Y' ) ) ) . " GMT" );