From e05784c3b630e8f01542afb9ec18a63c1e7bd4d0 Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Mon, 2 Jun 2014 19:42:06 +0400 Subject: [PATCH] add missed files --- composer.json | 35 +++++++++++++++++++++++++++++++++++ intarocrm/intarocrm.php | 3 +-- 2 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 composer.json diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..5b855e4 --- /dev/null +++ b/composer.json @@ -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" + } + ] +} diff --git a/intarocrm/intarocrm.php b/intarocrm/intarocrm.php index 0159d88..55e2885 100644 --- a/intarocrm/intarocrm.php +++ b/intarocrm/intarocrm.php @@ -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');