From: Alexander Ebert Date: Fri, 15 Aug 2014 10:17:51 +0000 (+0200) Subject: Fixed data import form X-Git-Tag: 2.1.0_Alpha_1~445^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7b91d8340dd588fc618eb60e9c5793489f293922;p=GitHub%2FWoltLab%2FWCF.git Fixed data import form --- diff --git a/wcfsetup/install/files/acp/templates/dataImport.tpl b/wcfsetup/install/files/acp/templates/dataImport.tpl index de937ef16a..806a270c26 100644 --- a/wcfsetup/install/files/acp/templates/dataImport.tpl +++ b/wcfsetup/install/files/acp/templates/dataImport.tpl @@ -122,7 +122,8 @@
- {@SID_INPUT_TAG} + + {@SECURITY_TOKEN_INPUT_TAG}
{/if} diff --git a/wcfsetup/install/files/lib/acp/form/DataImportForm.class.php b/wcfsetup/install/files/lib/acp/form/DataImportForm.class.php index 6b29d63363..75d2ed15d7 100644 --- a/wcfsetup/install/files/lib/acp/form/DataImportForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/DataImportForm.class.php @@ -190,6 +190,15 @@ class DataImportForm extends AbstractForm { if (isset($_POST['additionalData'])) $this->additionalData = ArrayUtil::trim($_POST['additionalData']); } + /** + * @see \wcf\form\IForm::submit() + */ + public function submit() { + if (!isset($_POST['sourceSelection'])) { + parent::submit(); + } + } + /** * @see \wcf\form\IForm::validate() */