Skip to content
Snippets Groups Projects
Unverified Commit fefed147 authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #4964 from JediKev/issue/this-version-utilize-major-version

issue: THIS_VERSION Utilize MAJOR_VERSION
parents 25d775e4 5b4c5124
Branches
Tags
No related merge requests found
...@@ -314,9 +314,9 @@ define('CLI_DIR', INCLUDE_DIR.'cli/'); ...@@ -314,9 +314,9 @@ define('CLI_DIR', INCLUDE_DIR.'cli/');
/*############## Do NOT monkey with anything else beyond this point UNLESS you really know what you are doing ##############*/ /*############## Do NOT monkey with anything else beyond this point UNLESS you really know what you are doing ##############*/
#Current version && schema signature (Changes from version to version) #Current version && schema signature (Changes from version to version)
define('THIS_VERSION','1.8-git'); //Shown on admin panel
define('GIT_VERSION','$git'); define('GIT_VERSION','$git');
define('MAJOR_VERSION', '1.10'); define('MAJOR_VERSION', '1.10');
define('THIS_VERSION', MAJOR_VERSION.'-git'); //Shown on admin panel
//Path separator //Path separator
if(!defined('PATH_SEPARATOR')){ if(!defined('PATH_SEPARATOR')){
if(strpos($_ENV['OS'],'Win')!==false || !strcasecmp(substr(PHP_OS, 0, 3),'WIN')) if(strpos($_ENV['OS'],'Win')!==false || !strcasecmp(substr(PHP_OS, 0, 3),'WIN'))
......
...@@ -122,7 +122,7 @@ class Deployment extends Unpacker { ...@@ -122,7 +122,7 @@ class Deployment extends Unpacker {
} }
if (!$version) if (!$version)
$version = exec('git describe'); $version = preg_replace('/^v(\d{1}\.\d{2}).*$/', '$1-git', exec('git describe'));
if (!$short || !$version) if (!$short || !$version)
return false; return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment