aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Installer.php
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2022-09-15 08:15:25 -0100
committerMaxence Lange <maxence@artificial-owl.com>2022-09-15 08:15:33 -0100
commit0efd6d995037bc34de714024f137fecdbdc50a69 (patch)
treefd187d0751321f586affd2152f3f170af0ab1fdc /lib/private/Installer.php
parent4c1f06170e1f7256bdc0791c40359c5ab6ad5eda (diff)
downloadnextcloud-server-0efd6d995037bc34de714024f137fecdbdc50a69.tar.gz
nextcloud-server-0efd6d995037bc34de714024f137fecdbdc50a69.zip
set defaultEnabled in shipped.json
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/private/Installer.php')
-rw-r--r--lib/private/Installer.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/private/Installer.php b/lib/private/Installer.php
index 86d933b6fbd..43c3db7c3fd 100644
--- a/lib/private/Installer.php
+++ b/lib/private/Installer.php
@@ -545,8 +545,7 @@ class Installer {
if ($filename[0] !== '.' and is_dir($app_dir['path']."/$filename")) {
if (file_exists($app_dir['path']."/$filename/appinfo/info.xml")) {
if ($config->getAppValue($filename, "installed_version", null) === null) {
- $info = OC_App::getAppInfo($filename);
- $enabled = isset($info['default_enable']);
+ $enabled = $appManager->isDefaultEnabled($filename);
if (($enabled || in_array($filename, $appManager->getAlwaysEnabledApps()))
&& $config->getAppValue($filename, 'enabled') !== 'no') {
if ($softErrors) {