Skip to content

Commit be0aca8

Browse files
committed
Only load Core\Application if Nextcloud is installed
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent 979f652 commit be0aca8

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.htaccess

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,7 @@
102102

103103
AddDefaultCharset utf-8
104104
Options -Indexes
105+
#### DO NOT CHANGE ANYTHING ABOVE THIS LINE ####
106+
107+
ErrorDocument 403 /
108+
ErrorDocument 404 /

lib/private/Console/Application.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,10 @@ public function __construct(IConfig $config,
7070
$this->request = $request;
7171
$this->logger = $logger;
7272
$this->memoryInfo = $memoryInfo;
73-
/* Build core application to make sure that listeners are registered */
74-
\OC::$server->query(CoreApplication::class);
73+
if ($config->getSystemValueBool('installed')) {
74+
/* Build core application to make sure that listeners are registered */
75+
\OC::$server->query(CoreApplication::class);
76+
}
7577
}
7678

7779
/**

0 commit comments

Comments
 (0)