Fix use conf instead of global var

This commit is contained in:
Maxime Kohlhaas 2017-10-18 19:09:29 +02:00
parent 74b401b70d
commit 4224ea6c56
3 changed files with 3 additions and 3 deletions

View File

@ -77,7 +77,7 @@ $list_account = array (
* Actions
*/
$accounting_mode = defined('ACCOUNTING_MODE') ? ACCOUNTING_MODE : 'RECETTES-DEPENSES';
$accounting_mode = $conf->global->ACCOUNTING_MODE;
if (GETPOST('change_chart'))

View File

@ -61,7 +61,7 @@ $list = array (
* Actions
*/
$accounting_mode = defined('ACCOUNTING_MODE') ? ACCOUNTING_MODE : 'RECETTES-DEPENSES';
$accounting_mode = $conf->global->ACCOUNTING_MODE;
if ($action == 'update') {
$error = 0;

View File

@ -54,7 +54,7 @@ $list = array(
* Actions
*/
$accounting_mode = defined('ACCOUNTING_MODE')?ACCOUNTING_MODE:'RECETTES-DEPENSES';
$accounting_mode = $conf->global->ACCOUNTING_MODE;
if ($action == 'update')
{