mirror of
https://github.com/retailcrm/opencart-module.git
synced 2024-11-21 20:56:07 +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 = '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])) {
|
||||
|
Loading…
Reference in New Issue
Block a user