mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-04-10 04:10:54 +00:00
Fixed work with log for PrestaShop 1.6
This commit is contained in:
parent
07fbd38277
commit
ca8ebe50ea
1 changed files with 3 additions and 1 deletions
|
@ -181,7 +181,9 @@ class RetailcrmLogger
|
|||
|
||||
public static function getLogDir()
|
||||
{
|
||||
return _PS_ROOT_DIR_ . '/var/logs';
|
||||
$logDir = version_compare(_PS_VERSION_, '1.7', '<') ? '/log' : '/var/logs';
|
||||
|
||||
return _PS_ROOT_DIR_ . $logDir;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue