CC-3817 : Should use soundcloud icon for recorded & uploaded shows in timeline for past shows to match calendar

This commit is contained in:
Naomi Aro 2012-05-14 15:06:56 +02:00
parent cc71c61fce
commit ff5aebfd6b
3 changed files with 15 additions and 3 deletions

View file

@ -175,6 +175,12 @@ class Application_Model_ShowBuilder {
}
else if (intval($p_item["si_record"]) === 1) {
$row["record"] = true;
if (Application_Model_Preference::GetUploadToSoundcloudOption()) {
$file = Application_Model_StoredFile::Recall($p_item["si_file_id"]);
$sid = $file->getSoundCloudId();
$row["soundcloud_id"] = $sid;
}
}
if ($startsEpoch < $this->epoch_now && $endsEpoch > $this->epoch_now) {