CC-2950: Tell users if they are running an out-of-date version or not
1. changed the behavior so that the tooltip comes up on hover 2. changed stat server link to "http://stat.sourcefabric.org/airtime_latest_version" 3. only updates the db if version returned by stat server is valid
This commit is contained in:
parent
becaf7a152
commit
51c563f80b
3 changed files with 3 additions and 5 deletions
|
@ -528,10 +528,9 @@ class Application_Model_Preference
|
|||
|
||||
public static function SetLatestVersion($version){
|
||||
$pattern = "/^[0-9]+\.[0-9]+\.[0-9]+/";
|
||||
if(!preg_match($pattern, $version)) {
|
||||
$version = self::GetAirtimeVersion();
|
||||
if(preg_match($pattern, $version)) {
|
||||
self::SetValue("latest_version", $version);
|
||||
}
|
||||
self::SetValue("latest_version", $version);
|
||||
}
|
||||
|
||||
public static function SetUploadToSoundcloudOption($upload) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue