Skip to content

Commit

Permalink
fix return correct version
Browse files Browse the repository at this point in the history
  • Loading branch information
k2s committed Apr 9, 2014
1 parent 743d154 commit a38e746
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions core/Engine.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ class Core_Engine
const ROLE_REMOTE = "remote";
const ROLE_LOCAL = "local";
const ROLE_COMPARE = "compare";
/**
* Cached final version of core engine
*
* @var string
*/
protected static $_version = false;
/**
* Output object, used to do logging and progress visualization tasks
*
Expand Down Expand Up @@ -790,15 +784,7 @@ static public function compactConfig($options)
*/
static public function getVersion()
{
if (false === self::$_version) {
$version = self::VERSION;
if ("?" == substr($version, -1)) {
// try to determine revision number from git
self::$_version = substr($version, 0, -1);
}
}

return self::$_version;
return self::VERSION;
}

static public function isWindows()
Expand Down

0 comments on commit a38e746

Please sign in to comment.