Skip to content

Commit

Permalink
Fix no more use of constant
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed May 8, 2017
1 parent c26d24e commit 05d6c2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions htdocs/admin/tools/purge.php
@@ -1,5 +1,5 @@
<?php
/* Copyright (C) 2006-2012 Laurent Destailleur <eldy@users.sourceforge.net>
/* Copyright (C) 2006-2017 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2006-2012 Regis Houssin <regis.houssin@capnetworks.com>
*
* This program is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -38,7 +38,7 @@
$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);
}

Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/class/utils.class.php
Expand Up @@ -94,7 +94,7 @@ function purgeFiles($choice='tempfilesold')
$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);
}

Expand Down

0 comments on commit 05d6c2c

Please sign in to comment.