BUG 8978 "Upgrade de la version 2.0.39 a la version 2.0.40 no ..." UPDATED
- moved the load class cli.php after to set error_repoting...
This commit is contained in:
@@ -45,8 +45,6 @@
|
|||||||
require_once( PATH_THIRDPARTY . 'pake/pakeGetopt.class.php');
|
require_once( PATH_THIRDPARTY . 'pake/pakeGetopt.class.php');
|
||||||
require_once( PATH_CORE . 'config/environments.php');
|
require_once( PATH_CORE . 'config/environments.php');
|
||||||
|
|
||||||
G::LoadClass("cli");
|
|
||||||
|
|
||||||
require_once PATH_HOME . 'engine' . PATH_SEP . 'classes' . PATH_SEP . 'class.system.php';
|
require_once PATH_HOME . 'engine' . PATH_SEP . 'classes' . PATH_SEP . 'class.system.php';
|
||||||
$config = System::getSystemConfiguration(PATH_HOME . 'engine' . PATH_SEP . 'config' . PATH_SEP . 'env.ini');
|
$config = System::getSystemConfiguration(PATH_HOME . 'engine' . PATH_SEP . 'config' . PATH_SEP . 'env.ini');
|
||||||
|
|
||||||
@@ -70,6 +68,8 @@
|
|||||||
define ('MEMCACHED_SERVER', $config['memcached_server']);
|
define ('MEMCACHED_SERVER', $config['memcached_server']);
|
||||||
define ('TIME_ZONE', $config['time_zone']);
|
define ('TIME_ZONE', $config['time_zone']);
|
||||||
|
|
||||||
|
G::LoadClass("cli");
|
||||||
|
|
||||||
// trap -V before pake
|
// trap -V before pake
|
||||||
if (in_array('-v', $argv) || in_array('-V', $argv) || in_array('--version', $argv))
|
if (in_array('-v', $argv) || in_array('-V', $argv) || in_array('--version', $argv))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user