Merge saas-dev into soundcloud
This commit is contained in:
commit
459f9494c3
373 changed files with 6577 additions and 10376 deletions
|
@ -427,7 +427,12 @@ class Application_Model_Preference
|
|||
|
||||
public static function GetStationDescription()
|
||||
{
|
||||
return self::getValue("description");
|
||||
$description = self::getValue("description");
|
||||
if (!empty($description)) {
|
||||
return $description;
|
||||
} else {
|
||||
return sprintf(_("Powered by %s"), SAAS_PRODUCT_BRANDING_NAME);
|
||||
}
|
||||
}
|
||||
|
||||
// Sets station default timezone (from preferences)
|
||||
|
@ -531,7 +536,14 @@ class Application_Model_Preference
|
|||
|
||||
public static function GetStationLogo()
|
||||
{
|
||||
return self::getValue("logoImage");
|
||||
$logoImage = self::getValue("logoImage");
|
||||
if (!empty($logoImage)) {
|
||||
return $logoImage;
|
||||
} else {
|
||||
// We return the Airtime logo if no logo is set in the database.
|
||||
// airtime_logo.png is stored under the public directory
|
||||
return DEFAULT_LOGO_PLACEHOLDER;
|
||||
}
|
||||
}
|
||||
|
||||
public static function SetUniqueId($id)
|
||||
|
@ -791,10 +803,30 @@ class Application_Model_Preference
|
|||
|
||||
return self::getValue("enable_stream_conf");
|
||||
}
|
||||
|
||||
public static function SetAirtimeVersion($version)
|
||||
|
||||
public static function GetSchemaVersion()
|
||||
{
|
||||
self::setValue("system_version", $version);
|
||||
CcPrefPeer::clearInstancePool(); //Ensure we don't get a cached Propel object (cached DB results)
|
||||
//because we're updating this version number within this HTTP request as well.
|
||||
|
||||
//New versions use schema_version
|
||||
$pref = CcPrefQuery::create()
|
||||
->filterByKeystr('schema_version')
|
||||
->findOne();
|
||||
|
||||
if (empty($pref)) {
|
||||
//Pre-2.5.2 releases all used this ambiguous "system_version" key to represent both the code and schema versions...
|
||||
$pref = CcPrefQuery::create()
|
||||
->filterByKeystr('system_version')
|
||||
->findOne();
|
||||
}
|
||||
$schemaVersion = $pref->getValStr();
|
||||
return $schemaVersion;
|
||||
}
|
||||
|
||||
public static function SetSchemaVersion($version)
|
||||
{
|
||||
self::setValue("schema_version", $version);
|
||||
}
|
||||
|
||||
public static function GetAirtimeVersion()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue