Removed obsolete code
authorMarcel Werk <burntime@woltlab.com>
Sat, 17 Sep 2016 21:26:02 +0000 (23:26 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sat, 17 Sep 2016 21:26:02 +0000 (23:26 +0200)
wcfsetup/install/files/lib/acp/form/PaidSubscriptionEditForm.class.php

index ea0cf1d746a1ad01386c9c5439ff61a6c98b0290..b2f96497434bff00560079be99c2af8aab5dce68 100644 (file)
@@ -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()
         */