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){ if($currentVersion->compare($newVersion) > 0){
$this->hasUpdate = true; $this->hasUpdate = true;
}else{
$this->hasUpdate = false;
} }
$this->hasUpdate = false;
} }
public function getChannel(){ public function getChannel(){

View File

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