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:
Erik Amaru Ortiz
2012-04-16 11:45:00 -04:00
parent 7ce3fa95f8
commit 0eced3887f

View File

@@ -45,8 +45,6 @@
require_once( PATH_THIRDPARTY . 'pake/pakeGetopt.class.php');
require_once( PATH_CORE . 'config/environments.php');
G::LoadClass("cli");
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');
@@ -70,6 +68,8 @@
define ('MEMCACHED_SERVER', $config['memcached_server']);
define ('TIME_ZONE', $config['time_zone']);
G::LoadClass("cli");
// trap -V before pake
if (in_array('-v', $argv) || in_array('-V', $argv) || in_array('--version', $argv))
{