mirror of
https://github.com/nextcloud/server.git
synced 2026-04-24 15:53:36 -04:00
Load PHPAss via autoloader
This commit is contained in:
parent
c4d7483a0a
commit
5b8a6b66b5
1 changed files with 2 additions and 1 deletions
|
|
@ -457,7 +457,8 @@ class OC {
|
|||
// setup 3rdparty autoloader
|
||||
$vendorAutoLoad = OC::$THIRDPARTYROOT . '/3rdparty/autoload.php';
|
||||
if (file_exists($vendorAutoLoad)) {
|
||||
require_once $vendorAutoLoad;
|
||||
$loader = require_once $vendorAutoLoad;
|
||||
$loader->add('PasswordHash', OC::$THIRDPARTYROOT . '/3rdparty/phpass');
|
||||
} else {
|
||||
OC_Response::setStatus(OC_Response::STATUS_SERVICE_UNAVAILABLE);
|
||||
OC_Template::printErrorPage('Composer autoloader not found, unable to continue.');
|
||||
|
|
|
|||
Loading…
Reference in a new issue