From 93ce21bbc6bfc33c526b8ccb3ae798c1f4205343 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sat, 17 Sep 2016 23:26:02 +0200 Subject: [PATCH] Removed obsolete code --- .../form/PaidSubscriptionEditForm.class.php | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/wcfsetup/install/files/lib/acp/form/PaidSubscriptionEditForm.class.php b/wcfsetup/install/files/lib/acp/form/PaidSubscriptionEditForm.class.php index ea0cf1d746..b2f9649743 100644 --- a/wcfsetup/install/files/lib/acp/form/PaidSubscriptionEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PaidSubscriptionEditForm.class.php @@ -7,7 +7,6 @@ use wcf\form\AbstractForm; use wcf\system\exception\PermissionDeniedException; use wcf\system\language\I18nHandler; use wcf\system\WCF; -use wcf\util\ArrayUtil; /** * Shows the paid subscription edit form. @@ -75,32 +74,6 @@ class PaidSubscriptionEditForm extends PaidSubscriptionAddForm { } } - /** - * @see \wcf\form\IForm::readFormParameters() - */ - public function readFormParameters() { - parent::readFormParameters(); - - // read i18n values - I18nHandler::getInstance()->readValues(); - - // handle i18n plain input - if (I18nHandler::getInstance()->isPlainValue('description')) $this->description = I18nHandler::getInstance()->getValue('description'); - if (I18nHandler::getInstance()->isPlainValue('title')) $this->title = I18nHandler::getInstance()->getValue('title'); - - if (!empty($_POST['isDisabled'])) $this->isDisabled = 1; - if (isset($_POST['showOrder'])) $this->showOrder = intval($_POST['showOrder']); - if (isset($_POST['cost'])) $this->cost = floatval($_POST['cost']); - if (isset($_POST['currency'])) $this->currency = $_POST['currency']; - if (!empty($_POST['subscriptionLengthPermanent'])) $this->subscriptionLengthPermanent = 1; - if (!$this->subscriptionLengthPermanent) { - if (isset($_POST['subscriptionLength'])) $this->subscriptionLength = intval($_POST['subscriptionLength']); - if (isset($_POST['subscriptionLengthUnit'])) $this->subscriptionLengthUnit = $_POST['subscriptionLengthUnit']; - } - if (!empty($_POST['isRecurring'])) $this->isRecurring = 1; - if (isset($_POST['groupIDs']) && is_array($_POST['groupIDs'])) $this->groupIDs = ArrayUtil::toIntegerArray($_POST['groupIDs']); - } - /** * @see \wcf\form\IForm::save() */ -- 2.20.1