Fix references to components of the version.

This commit is contained in:
Andrew McMillan 2007-10-20 11:57:54 +13:00
parent 05beacd24c
commit c8e0efc3ec

View File

@ -83,8 +83,8 @@ $c->code_version = 0;
$c->version_string = '0.7.0~rc3'; // The actual version # is replaced into that during the build /release process
if ( isset($c->version_string) && preg_match( '/(\d+)\.(\d+)\.(\d+)(.*)/', $c->version_string, $matches) ) {
$c->code_major = $matches[1];
$c->code_minor = $matches[1];
$c->code_patch = $matches[1];
$c->code_minor = $matches[2];
$c->code_patch = $matches[3];
$c->code_version = (($c->code_major * 1000) + $c->code_minor).".".$c->code_patch;
}
dbg_error_log("caldav", "Version %s (%d.%d.%d) == %s", $c->code_pkgver, $c->code_major, $c->code_minor, $c->code_patch, $c->code_version);