[BUGFIX] Hardcoded fileadmin directory in Import-Export
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Database / SoftReferenceIndex.php
index 308ad7f..1d89dc3 100644 (file)
@@ -85,7 +85,7 @@ class SoftReferenceIndex {
        /**
         * @todo Define visibility
         */
-       public $fileAdminDir = 'fileadmin';
+       public $fileAdminDir = '';
 
        // Internal:
        /**
@@ -93,6 +93,14 @@ class SoftReferenceIndex {
         */
        public $tokenID_basePrefix = '';
 
+       /**
+        * Class construct to set global variable
+        *
+        */
+       public function __construct() {
+               $this->fileAdminDir = !empty($GLOBALS['TYPO3_CONF_VARS']['BE']['fileadminDir']) ? $GLOBALS['TYPO3_CONF_VARS']['BE']['fileadminDir'] : 'fileadmin';
+       }
+
        /**
         * Main function through which all processing happens
         *