Merged in HOR-3700-DC (pull request #5979)

HOR-3700

Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
David Callizaya
2017-08-17 19:25:29 +00:00
committed by Julio Cesar Laura Avendaño
2 changed files with 15 additions and 2 deletions

View File

@@ -1,8 +1,12 @@
<?php <?php
use ProcessMaker\Core\System; use ProcessMaker\Core\System;
use Illuminate\Foundation\Http\Kernel;
require_once __DIR__ . '/../../../gulliver/system/class.g.php';
require_once __DIR__ . '/../../../bootstrap/autoload.php';
require_once __DIR__ . '/../../../bootstrap/app.php';
require_once(__DIR__ . '/../../../bootstrap/autoload.php');
try { try {
//Set variables //Set variables
$cronName = pathinfo($_SERVER['SCRIPT_FILENAME'], PATHINFO_FILENAME); $cronName = pathinfo($_SERVER['SCRIPT_FILENAME'], PATHINFO_FILENAME);
@@ -86,6 +90,8 @@ try {
$e_all = (defined('E_STRICT'))? $e_all & ~E_STRICT : $e_all; $e_all = (defined('E_STRICT'))? $e_all & ~E_STRICT : $e_all;
$e_all = ($arraySystemConfiguration['debug'])? $e_all : $e_all & ~E_NOTICE; $e_all = ($arraySystemConfiguration['debug'])? $e_all : $e_all & ~E_NOTICE;
app()->useStoragePath(realpath(PATH_DATA));
app()->make(Kernel::class)->bootstrap();
//Do not change any of these settings directly, use env.ini instead //Do not change any of these settings directly, use env.ini instead
ini_set('display_errors', $arraySystemConfiguration['debug']); ini_set('display_errors', $arraySystemConfiguration['debug']);
ini_set('error_reporting', $e_all); ini_set('error_reporting', $e_all);

View File

@@ -1,5 +1,10 @@
<?php <?php
require_once(__DIR__ . '/../../../bootstrap/autoload.php');
use Illuminate\Foundation\Http\Kernel;
require_once __DIR__ . '/../../../gulliver/system/class.g.php';
require_once __DIR__ . '/../../../bootstrap/autoload.php';
require_once __DIR__ . '/../../../bootstrap/app.php';
use ProcessMaker\Core\System; use ProcessMaker\Core\System;
use ProcessMaker\Plugins\PluginRegistry; use ProcessMaker\Plugins\PluginRegistry;
@@ -75,6 +80,8 @@ try {
$e_all = (defined('E_STRICT'))? $e_all & ~E_STRICT : $e_all; $e_all = (defined('E_STRICT'))? $e_all & ~E_STRICT : $e_all;
$e_all = ($arraySystemConfiguration['debug'])? $e_all : $e_all & ~E_NOTICE; $e_all = ($arraySystemConfiguration['debug'])? $e_all : $e_all & ~E_NOTICE;
app()->useStoragePath(realpath(PATH_DATA));
app()->make(Kernel::class)->bootstrap();
//Do not change any of these settings directly, use env.ini instead //Do not change any of these settings directly, use env.ini instead
ini_set('display_errors', $arraySystemConfiguration['debug']); ini_set('display_errors', $arraySystemConfiguration['debug']);
ini_set('error_reporting', $e_all); ini_set('error_reporting', $e_all);