Fixed updater

This commit is contained in:
Shoghi Cervantes 2014-06-16 20:17:32 +02:00
parent 73b9b2491f
commit 77e914238c
2 changed files with 4 additions and 3 deletions

View File

@ -124,9 +124,10 @@ class AutoUpdater{
if($currentVersion->compare($newVersion) > 0){
$this->hasUpdate = true;
}else{
$this->hasUpdate = false;
}
$this->hasUpdate = false;
}
public function getChannel(){

View File

@ -83,7 +83,7 @@ class VersionString{
}
public function getRelease(){
return $this->generation . "." . $this->major . "." . $this->minor;
return $this->generation . "." . $this->major . ($this->minor > 0 ? "." . $this->minor : "");
}
public function getBuild(){
@ -117,7 +117,7 @@ class VersionString{
return 1; //Target is newer
}elseif($target->getBuild() > $this->getBuild()){
return 1;
}elseif($target->getBuild() > $this->getBuild()){
}elseif($target->getBuild() < $this->getBuild()){
return -1;
}else{
return 0; //Same version