From: Marcel Werk Date: Wed, 31 Jul 2013 19:23:13 +0000 (+0200) Subject: Added missing default value X-Git-Tag: 2.0.0_Beta_7~73^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3ecdfb5530489cae378e76ff8d6d9a3e3f2ca591;p=GitHub%2FWoltLab%2FWCF.git Added missing default value --- diff --git a/wcfsetup/install/files/lib/acp/form/DataImportForm.class.php b/wcfsetup/install/files/lib/acp/form/DataImportForm.class.php index 081fdc14a8..3046fe843e 100644 --- a/wcfsetup/install/files/lib/acp/form/DataImportForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/DataImportForm.class.php @@ -221,6 +221,17 @@ class DataImportForm extends AbstractForm { WCF::getTPL()->assign('queue', $queue); } + /** + * @see wcf\page\IPage::readData() + */ + public function readData() { + parent::readData(); + + if (!count($_POST)) { + $this->fileSystemPath = (!empty($_SERVER['DOCUMENT_ROOT']) ? $_SERVER['DOCUMENT_ROOT'] : WCF_DIR); + } + } + /** * @see wcf\page\IPage::assignVariables() */