CC-2950: Tell users if they are running an out-of-date version or not
Get rid of hardcoded url for downloading the latest version, and use the url stored in the stat server instead
This commit is contained in:
parent
d836425931
commit
eae90862b1
4 changed files with 25 additions and 8 deletions
|
@ -526,6 +526,19 @@ class Application_Model_Preference
|
|||
self::SetValue("latest_version", $version);
|
||||
}
|
||||
}
|
||||
|
||||
public static function GetLatestLink(){
|
||||
$link = self::GetValue("latest_link");
|
||||
if($link == null || strlen($link) == 0) {
|
||||
return "";
|
||||
} else {
|
||||
return $link;
|
||||
}
|
||||
}
|
||||
|
||||
public static function SetLatestLink($link){
|
||||
self::SetValue("latest_link", $link);
|
||||
}
|
||||
|
||||
public static function SetUploadToSoundcloudOption($upload) {
|
||||
self::SetValue("soundcloud_upload_option", $upload);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue