1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-05 19:41:55 +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

@ -51,11 +51,12 @@ require_once $prefix . '/modules/php-gettext/gettext.inc';
// Define some base level config options
AmpConfig::set('prefix', $prefix);
// Register the autoloader
// Register autoloaders
spl_autoload_register(array('Core', 'autoload'), true, true);
require_once $prefix . '/modules/requests/Requests.php';
Requests::register_autoloader();
$composer_autoload = $prefix . '/lib/vendor/autoload.php';
if (file_exists($composer_autoload)) {
require_once $prefix . '/lib/vendor/autoload.php';
}
// Check to see if this is http or https
if ((isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https' )