From: Tim Düsterhus Date: Thu, 12 May 2022 10:39:18 +0000 (+0200) Subject: Remove obsolete WCFACP::initPackage() X-Git-Tag: 6.0.0_Alpha_1~1315^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=329567500e9c3ce8fc760255f3b38e3cca9e8416;p=GitHub%2FWoltLab%2FWCF.git Remove obsolete WCFACP::initPackage() Ever since WoltLab Suite Core got its own frontend the PACKAGE_ID constant should be defined at all times, making this method obsolete. --- diff --git a/wcfsetup/install/files/lib/system/WCFACP.class.php b/wcfsetup/install/files/lib/system/WCFACP.class.php index 8fc2ffdf4d..06cc370109 100644 --- a/wcfsetup/install/files/lib/system/WCFACP.class.php +++ b/wcfsetup/install/files/lib/system/WCFACP.class.php @@ -60,7 +60,6 @@ class WCFACP extends WCF // start initialization $this->initDB(); $this->loadOptions(); - $this->initPackage(); $this->initSession(); $this->initLanguage(); $this->initTPL(); @@ -283,17 +282,6 @@ class WCFACP extends WCF ]); } - /** - * Initializes the active package. - */ - protected function initPackage() - { - // define active package id - if (!\defined('PACKAGE_ID')) { - \define('PACKAGE_ID', 1); - } - } - /** * @deprecated 5.4 The master password is deprecated in favor of proper MFA (https://github.com/WoltLab/WCF/issues/3698). */