We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
app.config.inc.php
1 parent ff6c216 commit 1354e2cCopy full SHA for 1354e2c
wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php
@@ -261,6 +261,20 @@ public function resolveActiveApplication(string $path): void
261
262
if (!\defined('PACKAGE_ID')) {
263
\define('PACKAGE_ID', $packageID);
264
+
265
+ if ($packageID !== 1) {
266
+ $application = ApplicationHandler::getInstance()->getApplicationByID($packageID);
267
+ \assert($application !== null);
268
269
+ // Include the `app.config.inc.php` of the primary app.
270
+ $pathname = FileUtil::addTrailingSlash(
271
+ FileUtil::getRealPath(
272
+ \WCF_DIR . $application->getPackage()->packageDir
273
+ )
274
+ ) . 'app.config.inc.php';
275
276
+ require_once $pathname;
277
+ }
278
}
279
280
0 commit comments