mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-03-02 19:33:14 +03:00
Fixed work with log for PrestaShop 1.6
This commit is contained in:
parent
07fbd38277
commit
ca8ebe50ea
@ -181,7 +181,9 @@ class RetailcrmLogger
|
|||||||
|
|
||||||
public static function getLogDir()
|
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…
x
Reference in New Issue
Block a user