mirror of
https://github.com/nextcloud/server.git
synced 2026-05-19 08:25:56 -04:00
fix(apps): filter autoloading registration by app type too in loadApps
Signed-off-by: Josh <josh.t.richards@gmail.com>
This commit is contained in:
parent
288964baaa
commit
acde2f5041
1 changed files with 1 additions and 1 deletions
|
|
@ -256,7 +256,7 @@ class AppManager implements IAppManager {
|
|||
// Add each apps' folder as allowed class path
|
||||
foreach ($apps as $app) {
|
||||
// If the app is already loaded then autoloading it makes no sense
|
||||
if (!$this->isAppLoaded($app)) {
|
||||
if (!$this->isAppLoaded($app) && ($types === [] || $this->isType($app, $types))) {
|
||||
try {
|
||||
$path = $this->getAppPath($app);
|
||||
\OC_App::registerAutoloading($app, $path);
|
||||
|
|
|
|||
Loading…
Reference in a new issue