From 3a3eb3d219bfc89fc16ac87333d1a99682d443bc Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 22 Dec 2011 20:00:07 +0100 Subject: [PATCH] Fixed loadApplication() to not init settings in ACP --- wcfsetup/install/files/lib/system/WCF.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/WCF.class.php b/wcfsetup/install/files/lib/system/WCF.class.php index 51c85a0d11..da485e800f 100644 --- a/wcfsetup/install/files/lib/system/WCF.class.php +++ b/wcfsetup/install/files/lib/system/WCF.class.php @@ -446,7 +446,8 @@ class WCF { throw new exception\SystemException('Unable to run '.$row['package'].', '.$className.' missing.'); } - if (!$isDepedentApplication) { + // load application settings if not within ACP + if (!class_exists('wcf\system\WCFACP', false) && !$isDepedentApplication) { // load options $this->loadOptions($packageDir.'options.inc.php', $application->packageID); -- 2.20.1