add missed files

This commit is contained in:
Alex Lushpai 2014-06-02 19:42:06 +04:00
parent bb2ae14646
commit e05784c3b6
2 changed files with 36 additions and 2 deletions

35
composer.json Normal file
View File

@ -0,0 +1,35 @@
{
"name": "intarocrm/prestashop-module",
"description": "Prestashop integration for IntaroCRM",
"type": "library",
"keywords": ["api", "Intaro CRM", "rest"],
"homepage": "http://www.intarocrm.ru/",
"config": {
"vendor-dir": "intarocrm/classes"
},
"authors": [
{
"name": "Alex Lushpai",
"email": "lushpai@intaro.ru",
"role": "Developer"
}
],
"support": {
"email": "support@intarocrm.ru"
},
"require": {
"php": ">=5.3",
"intarocrm/rest-api-client": "1.2.*"
},
"autoload": {
"psr-0": {
"": "src/"
}
},
"repositories": [
{
"type": "git",
"url": "https://github.com/intarocrm/rest-api-client"
}
]
}

View File

@ -813,9 +813,8 @@ class IntaroCRM extends Module
/*
* get last sync date
*/
//$lastSync = Configuration::get('INTAROCRM_LAST_SYNC');
$lastSync = Configuration::get('INTAROCRM_LAST_SYNC');
$lastSync = false;
$startFrom = ($lastSync === false) ? null : $lastSync;
$endTime = date('Y-m-d H:i:s');