From 5f9dd83c38c9ee916e3b3e6df9ccc619ce55f877 Mon Sep 17 00:00:00 2001 From: james Date: Mon, 27 Jun 2011 11:43:59 -0400 Subject: [PATCH] CC-2377:Upload to soundcloud no show name - fixed - additional fix: getRealFilePath() doesn't exsist anymore. Places where it calls getRealFilePath(), replaced with getFilePath() --- airtime_mvc/application/controllers/ApiController.php | 2 +- airtime_mvc/application/controllers/ScheduleController.php | 2 +- airtime_mvc/application/models/Shows.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/airtime_mvc/application/controllers/ApiController.php b/airtime_mvc/application/controllers/ApiController.php index 36495a3a6..d31dad175 100644 --- a/airtime_mvc/application/controllers/ApiController.php +++ b/airtime_mvc/application/controllers/ApiController.php @@ -364,7 +364,7 @@ class ApiController extends Zend_Controller_Action try { $soundcloud = new ATSoundcloud(); - $soundcloud_id = $soundcloud->uploadTrack($file->getRealFilePath(), $tmpTitle, $description, $tags, $show_start_time, $show_genre); + $soundcloud_id = $soundcloud->uploadTrack($file->getFilePath(), $tmpTitle, $description, $tags, $show_start_time, $show_genre); $show_inst->setSoundCloudFileId($soundcloud_id); break; } diff --git a/airtime_mvc/application/controllers/ScheduleController.php b/airtime_mvc/application/controllers/ScheduleController.php index 963b9ea80..f9316b20e 100644 --- a/airtime_mvc/application/controllers/ScheduleController.php +++ b/airtime_mvc/application/controllers/ScheduleController.php @@ -156,7 +156,7 @@ class ScheduleController extends Zend_Controller_Action try { $soundcloud = new ATSoundcloud(); - $soundcloud_id = $soundcloud->uploadTrack($file->getRealFilePath(), $file->getName(), $description, $tags, $show_start_time, $show_genre); + $soundcloud_id = $soundcloud->uploadTrack($file->getFilePath(), $file->getName(), $description, $tags, $show_start_time, $show_genre); $show_inst->setSoundCloudFileId($soundcloud_id); $this->view->soundcloud_id = $soundcloud_id; break; diff --git a/airtime_mvc/application/models/Shows.php b/airtime_mvc/application/models/Shows.php index d52721a26..5026ad604 100644 --- a/airtime_mvc/application/models/Shows.php +++ b/airtime_mvc/application/models/Shows.php @@ -1358,7 +1358,7 @@ class ShowInstance { return null; } - if(file_exists($file->getRealFilePath())) { + if(file_exists($file->getFilePath())) { return $file; } }