SoundCloud - Add release_year metadata field and set default sharing and license types

This commit is contained in:
Duncan Sommerville 2015-06-25 10:53:35 -04:00
parent 67155b136a
commit d91b05a0ae
4 changed files with 18 additions and 7 deletions

View file

@ -1452,7 +1452,9 @@ class Application_Model_Preference
// SoundCloud
public static function getDefaultSoundCloudLicenseType() {
return self::getValue("soundcloud_license_type");
$val = self::getValue("soundcloud_license_type");
// If we don't have a value set, return all-rights-reserved by default
return empty($val) ? DEFAULT_SOUNDCLOUD_LICENSE_TYPE : $val;
}
public static function setDefaultSoundCloudLicenseType($value) {
@ -1460,7 +1462,9 @@ class Application_Model_Preference
}
public static function getDefaultSoundCloudSharingType() {
return self::getValue("soundcloud_sharing_type");
$val = self::getValue("soundcloud_sharing_type");
// If we don't have a value set, return public by default
return empty($val) ? DEFAULT_SOUNDCLOUD_SHARING_TYPE : $val;
}
public static function setDefaultSoundCloudSharingType($value) {