1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-04 10:19:25 +02:00

Use Composer for dependencies

This commit is contained in:
Afterster 2015-09-13 23:23:51 +02:00
parent fa8084d312
commit 16d80f8435
1882 changed files with 3711 additions and 327466 deletions

View file

@ -77,7 +77,10 @@ function get_media_files($media_ids)
function send_zip($name, $media_files)
{
/* Require needed library */
require_once AmpConfig::get('prefix') . '/modules/ZipStream/ZipStream.php';
if (!@include_once(AmpConfig::get('prefix') . '/lib/vendor/maennchen/zipstream-php/src/ZipStream.php')) {
throw new Exception('Missing ZipStream dependency.');
}
$arc = new ZipStream\ZipStream($name . ".zip" );
$options = array(
'comment' => AmpConfig::get('file_zip_comment'),