Added missing default value
authorMarcel Werk <burntime@woltlab.com>
Wed, 31 Jul 2013 19:23:13 +0000 (21:23 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 31 Jul 2013 19:23:13 +0000 (21:23 +0200)
wcfsetup/install/files/lib/acp/form/DataImportForm.class.php

index 081fdc14a852633734560558b2eaab4029e14df7..3046fe843e59611657479fcbb3082343369a5bf2 100644 (file)
@@ -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()
         */