From 6e4f718069bc77416d3470dcaa376994365601e2 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 6 Apr 2016 10:22:15 +0200 Subject: [PATCH] Remove remnants of application landing pages See a80873d5fe45732dd39a51a89f6f58a91656fc50 --- .../files/lib/data/application/Application.class.php | 1 - .../lib/data/application/ApplicationAction.class.php | 12 ------------ wcfsetup/setup/db/install.sql | 1 - 3 files changed, 14 deletions(-) diff --git a/wcfsetup/install/files/lib/data/application/Application.class.php b/wcfsetup/install/files/lib/data/application/Application.class.php index fe9e91dec9..3d781e9aa9 100644 --- a/wcfsetup/install/files/lib/data/application/Application.class.php +++ b/wcfsetup/install/files/lib/data/application/Application.class.php @@ -24,7 +24,6 @@ use wcf\util\FileUtil; * @property-read string $domainPath * @property-read string $cookieDomain * @property-read string $cookiePath - * @property-read integer|null $landingPageID */ class Application extends DatabaseObject { /** diff --git a/wcfsetup/install/files/lib/data/application/ApplicationAction.class.php b/wcfsetup/install/files/lib/data/application/ApplicationAction.class.php index 2cd4b711ac..8323834499 100644 --- a/wcfsetup/install/files/lib/data/application/ApplicationAction.class.php +++ b/wcfsetup/install/files/lib/data/application/ApplicationAction.class.php @@ -102,16 +102,4 @@ class ApplicationAction extends AbstractDatabaseObjectAction { // reset application cache ApplicationCacheBuilder::getInstance()->reset(); } - - /** - * Sets landing pages for applications. - */ - public function setLandingPage() { - /** @var ApplicationEditor $applicationEditor */ - foreach ($this->objects as $applicationEditor) { - $applicationEditor->update([ - 'landingPageID' => $this->parameters['landingPages'][$applicationEditor->packageID] - ]); - } - } } diff --git a/wcfsetup/setup/db/install.sql b/wcfsetup/setup/db/install.sql index 130ad586a5..97b531c554 100644 --- a/wcfsetup/setup/db/install.sql +++ b/wcfsetup/setup/db/install.sql @@ -1630,7 +1630,6 @@ ALTER TABLE wcf1_acp_template ADD FOREIGN KEY (packageID) REFERENCES wcf1_packag ALTER TABLE wcf1_ad ADD FOREIGN KEY (objectTypeID) REFERENCES wcf1_object_type (objectTypeID) ON DELETE CASCADE; ALTER TABLE wcf1_application ADD FOREIGN KEY (packageID) REFERENCES wcf1_package (packageID) ON DELETE CASCADE; -ALTER TABLE wcf1_application ADD FOREIGN KEY (landingPageID) REFERENCES wcf1_page (pageID) ON DELETE SET NULL; ALTER TABLE wcf1_attachment ADD FOREIGN KEY (objectTypeID) REFERENCES wcf1_object_type (objectTypeID) ON DELETE CASCADE; ALTER TABLE wcf1_attachment ADD FOREIGN KEY (userID) REFERENCES wcf1_user (userID) ON DELETE SET NULL; -- 2.20.1