From 329567500e9c3ce8fc760255f3b38e3cca9e8416 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 12 May 2022 12:39:18 +0200 Subject: [PATCH] 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. --- wcfsetup/install/files/lib/system/WCFACP.class.php | 12 ------------ 1 file changed, 12 deletions(-) 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). */ -- 2.20.1