cleanup of function names
This commit is contained in:
parent
923f4ee180
commit
fd78ad29bf
8 changed files with 23 additions and 31 deletions
|
@ -177,7 +177,7 @@ class LibraryController extends Zend_Controller_Action
|
|||
|
||||
if ($type === "audioclip") {
|
||||
|
||||
$file = Application_Model_StoredFile::Recall($id);
|
||||
$file = Application_Model_StoredFile::RecallById($id);
|
||||
|
||||
$menu["play"]["mime"] = $file->getPropelOrm()->getDbMime();
|
||||
|
||||
|
@ -335,7 +335,7 @@ class LibraryController extends Zend_Controller_Action
|
|||
|
||||
foreach ($files as $id) {
|
||||
|
||||
$file = Application_Model_StoredFile::Recall($id);
|
||||
$file = Application_Model_StoredFile::RecallById($id);
|
||||
|
||||
if (isset($file)) {
|
||||
try {
|
||||
|
@ -407,7 +407,7 @@ class LibraryController extends Zend_Controller_Action
|
|||
$request = $this->getRequest();
|
||||
|
||||
$file_id = $this->_getParam('id', null);
|
||||
$file = Application_Model_StoredFile::Recall($file_id);
|
||||
$file = Application_Model_StoredFile::RecallById($file_id);
|
||||
|
||||
if (!$isAdminOrPM && $file->getFileOwnerId() != $user->getId()) {
|
||||
return;
|
||||
|
@ -449,7 +449,7 @@ class LibraryController extends Zend_Controller_Action
|
|||
|
||||
try {
|
||||
if ($type == "audioclip") {
|
||||
$file = Application_Model_StoredFile::Recall($id);
|
||||
$file = Application_Model_StoredFile::RecallById($id);
|
||||
$this->view->type = $type;
|
||||
$md = $file->getMetadata();
|
||||
|
||||
|
@ -533,7 +533,7 @@ class LibraryController extends Zend_Controller_Action
|
|||
$this->view->error_code = $file->getSoundCloudErrorCode();
|
||||
$this->view->error_msg = $file->getSoundCloudErrorMsg();
|
||||
} elseif ($type == "file") {
|
||||
$file = Application_Model_StoredFile::Recall($id);
|
||||
$file = Application_Model_StoredFile::RecallById($id);
|
||||
$this->view->sc_id = $file->getSoundCloudId();
|
||||
$this->view->error_code = $file->getSoundCloudErrorCode();
|
||||
$this->view->error_msg = $file->getSoundCloudErrorMsg();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue