mirror of
https://github.com/retailcrm/opencart-module.git
synced 2024-11-25 06:36:06 +03:00
fix version file path (#194)
This commit is contained in:
parent
28391f4134
commit
1d9110c364
@ -12,7 +12,7 @@ if (!isset($cli_action)) {
|
|||||||
|
|
||||||
// Version
|
// Version
|
||||||
$version = '2.3.0';
|
$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);
|
preg_match("/define\([\s]*['\"]VERSION['\"][\s]*,[\s]*['\"](.*)['\"][\s]*\)[\s]*;/mi", $indexFile, $versionMatches);
|
||||||
|
|
||||||
if (isset($versionMatches[1])) {
|
if (isset($versionMatches[1])) {
|
||||||
|
Loading…
Reference in New Issue
Block a user