[BUGFIX] BasicFileUtility uses deprecation API in a wrong way 98/22098/3
authorMarkus Klein <klein.t3@mfc-linz.at>
Sun, 7 Jul 2013 10:05:47 +0000 (12:05 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Sun, 7 Jul 2013 20:19:12 +0000 (22:19 +0200)
Resolves: #49765
Releases: 6.2, 6.1, 6.0
Change-Id: Ieb5e652bb35f406207f0f0b63db894c9efbb98ff
Reviewed-on: https://review.typo3.org/22098
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/core/Classes/Utility/File/BasicFileUtility.php

index e11bdf4..544cb64 100644 (file)
@@ -131,13 +131,15 @@ class BasicFileUtility {
         * @return      void
         * @see typo3/init.php, \TYPO3\CMS\Core\Authentication\BackendUserAuthentication::returnFilemounts()
         * @todo Define visibility
+        * @deprecated All methods in this class should not be used anymore since TYPO3 6.0. Please use corresponding TYPO3\\CMS\\Core\\Resource\\ResourceStorage (fetched via BE_USERS->getFileStorages()), as all functions should be found there (in a cleaner manner).
         */
        public function init($mounts, $f_ext) {
-               GeneralUtility::logDeprecatedFunction('All methods in this class should not be used anymore since TYPO3 6.0. Please use corresponding TYPO3\\CMS\\Core\\Resource\\ResourceStorage (fetched via BE_USERS->getFileStorages()), as all functions should be found there (in a cleaner manner).');
+               GeneralUtility::logDeprecatedFunction();
                $this->f_ext['webspace']['allow'] = GeneralUtility::uniqueList(strtolower($f_ext['webspace']['allow']));
                $this->f_ext['webspace']['deny'] = GeneralUtility::uniqueList(strtolower($f_ext['webspace']['deny']));
                $this->f_ext['ftpspace']['allow'] = GeneralUtility::uniqueList(strtolower($f_ext['ftpspace']['allow']));
                $this->f_ext['ftpspace']['deny'] = GeneralUtility::uniqueList(strtolower($f_ext['ftpspace']['deny']));
+
                $this->mounts = $mounts;
                $this->webPath = GeneralUtility::getIndpEnv('TYPO3_DOCUMENT_ROOT');
                $this->isInit = 1;