From 05d6c2cd75fd968fad33f1407a3972dcc4276dac Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 9 May 2017 01:36:20 +0200 Subject: [PATCH] Fix no more use of constant --- htdocs/admin/tools/purge.php | 4 ++-- htdocs/core/class/utils.class.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/admin/tools/purge.php b/htdocs/admin/tools/purge.php index 170c37a79bf..e913d59a4a7 100644 --- a/htdocs/admin/tools/purge.php +++ b/htdocs/admin/tools/purge.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2006-2017 Laurent Destailleur * Copyright (C) 2006-2012 Regis Houssin * * This program is free software; you can redistribute it and/or modify @@ -38,7 +38,7 @@ $choice=GETPOST('choice'); $filelog=''; if (! empty($conf->syslog->enabled)) { - $filelog=SYSLOG_FILE; + $filelog=$conf->global->SYSLOG_FILE; $filelog=preg_replace('/DOL_DATA_ROOT/i',DOL_DATA_ROOT,$filelog); } diff --git a/htdocs/core/class/utils.class.php b/htdocs/core/class/utils.class.php index 4e3cf7a0928..3a35bfb2cc2 100644 --- a/htdocs/core/class/utils.class.php +++ b/htdocs/core/class/utils.class.php @@ -94,7 +94,7 @@ class Utils $filelog=''; if (! empty($conf->syslog->enabled)) { - $filelog=SYSLOG_FILE; + $filelog=$conf->global->SYSLOG_FILE; $filelog=preg_replace('/DOL_DATA_ROOT/i',DOL_DATA_ROOT,$filelog); }