chore: remove cloud storage remainings (#1934)
This commit is contained in:
parent
0e6b0da142
commit
703a8e5856
33 changed files with 50 additions and 3571 deletions
|
@ -122,10 +122,6 @@ class LibraryController extends Zend_Controller_Action
|
|||
// $menu["publish"] = array("name"=> _("Publish..."), "url" => $baseUrl."library/publish/id/{$id}");
|
||||
}
|
||||
|
||||
// It's important that we always return the parent id (cc_files id)
|
||||
// and not the cloud_file id (if applicable) for track download.
|
||||
// Our application logic (StoredFile.php) will determine if the track
|
||||
// is a cloud_file and handle it appropriately.
|
||||
$url = $baseUrl . "api/get-media/file/{$id}/download/true";
|
||||
$menu['download'] = ['name' => _('Download'), 'icon' => 'download', 'url' => $url];
|
||||
} elseif ($type === 'playlist' || $type === 'block') {
|
||||
|
|
|
@ -465,7 +465,6 @@ class PreferenceController extends Zend_Controller_Action
|
|||
}
|
||||
|
||||
$this->deleteFutureScheduleItems();
|
||||
$this->deleteCloudFiles();
|
||||
$this->deleteStoredFiles();
|
||||
|
||||
$this->getResponse()
|
||||
|
@ -499,20 +498,6 @@ class PreferenceController extends Zend_Controller_Action
|
|||
}
|
||||
}
|
||||
|
||||
private function deleteCloudFiles()
|
||||
{
|
||||
try {
|
||||
$CC_CONFIG = Config::getConfig();
|
||||
|
||||
foreach ($CC_CONFIG['supportedStorageBackends'] as $storageBackend) {
|
||||
$proxyStorageBackend = new ProxyStorageBackend($storageBackend);
|
||||
$proxyStorageBackend->deleteAllCloudFileObjects();
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
Logging::info($e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
private function deleteStoredFiles()
|
||||
{
|
||||
// Delete all files from the database
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue