From 3ecdfb5530489cae378e76ff8d6d9a3e3f2ca591 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 31 Jul 2013 21:23:13 +0200 Subject: [PATCH] Added missing default value --- .../files/lib/acp/form/DataImportForm.class.php | 11 +++++++++++ 1 file changed, 11 insertions(+) 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() */ -- 2.20.1