Fix use conf instead of global var
This commit is contained in:
parent
74b401b70d
commit
4224ea6c56
@ -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'))
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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')
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user