From 1d9110c36440d581ce5a7cb75978d56ebb1abfdf Mon Sep 17 00:00:00 2001 From: vasilevdm Date: Wed, 23 Sep 2020 11:57:15 +0300 Subject: [PATCH] fix version file path (#194) --- src/upload/system/library/retailcrm/cron/dispatch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/upload/system/library/retailcrm/cron/dispatch.php b/src/upload/system/library/retailcrm/cron/dispatch.php index 083f418..74722b1 100644 --- a/src/upload/system/library/retailcrm/cron/dispatch.php +++ b/src/upload/system/library/retailcrm/cron/dispatch.php @@ -12,7 +12,7 @@ if (!isset($cli_action)) { // Version $version = '2.3.0'; -$indexFile = file_get_contents(realpath(dirname(__FILE__)) . '/../../index.php'); +$indexFile = file_get_contents(realpath(dirname(__FILE__)) . '/../../../../index.php'); preg_match("/define\([\s]*['\"]VERSION['\"][\s]*,[\s]*['\"](.*)['\"][\s]*\)[\s]*;/mi", $indexFile, $versionMatches); if (isset($versionMatches[1])) {