From a87af86a69da9cfac236af1cf45b086193cbfc2f Mon Sep 17 00:00:00 2001 From: dkorol Date: Wed, 6 Apr 2016 12:34:40 +0300 Subject: [PATCH] bugfixes --- admin/model/retailcrm/icml.php | 4 +++- system/cron/dispatch.php | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) mode change 100644 => 100755 admin/model/retailcrm/icml.php mode change 100644 => 100755 system/cron/dispatch.php diff --git a/admin/model/retailcrm/icml.php b/admin/model/retailcrm/icml.php old mode 100644 new mode 100755 index 8887493..bfdf129 --- a/admin/model/retailcrm/icml.php +++ b/admin/model/retailcrm/icml.php @@ -63,6 +63,8 @@ class ModelRetailcrmIcml extends Model { $categories = $this->model_catalog_category->getCategories(array()); foreach($categories as $category) { + $category = $this->model_catalog_category->getCategory($category['category_id']); + $e = $this->eCategories->appendChild( $this->dd->createElement( 'category', $category['name'] @@ -118,7 +120,7 @@ class ModelRetailcrmIcml extends Model if (!empty($categories)) { foreach ($categories as $category) { - $e->appendChild($this->dd->createElement('category')) + $e->appendChild($this->dd->createElement('categoryId')) ->appendChild( $this->dd->createTextNode($category) ); diff --git a/system/cron/dispatch.php b/system/cron/dispatch.php old mode 100644 new mode 100755 index 47e3144..e7ccfdb --- a/system/cron/dispatch.php +++ b/system/cron/dispatch.php @@ -106,6 +106,10 @@ $request = new Request(); $registry->set('request', $request); $response = new Response(); $response->addHeader('Content-Type: text/html; charset=utf-8'); + +$cache = new Cache('file'); +$registry->set('cache', $cache); + $registry->set('response', $response); $session = new Session(); $registry->set('session', $session);