[BUGFIX] Usage of deprecated returnFilemounts() 69/19069/2
authorMarkus Klein <klein.t3@mfc-linz.at>
Wed, 27 Feb 2013 12:06:46 +0000 (13:06 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 19 Mar 2013 20:34:35 +0000 (21:34 +0100)
Some places in Core still use $GLOBALS['BE_USER']->returnFilemounts()

Resolves: #36405
Releases: 6.0, 6.1
Change-Id: I6252ed1191811a9813e590aa570741d31522895c
Reviewed-on: https://review.typo3.org/19069
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/core/Classes/Core/Bootstrap.php
typo3/sysext/recordlist/Classes/Controller/ElementBrowserController.php
typo3/sysext/rtehtmlarea/Classes/Controller/BrowseLinksController.php
typo3/sysext/rtehtmlarea/Classes/Controller/SelectImageController.php

index 23d90db..879610c 100644 (file)
@@ -869,7 +869,8 @@ class Bootstrap {
        public function initializeBackendUserMounts() {
                // Includes deleted mount pages as well! @TODO: Figure out why ...
                $GLOBALS['WEBMOUNTS'] = $GLOBALS['BE_USER']->returnWebmounts();
-               $GLOBALS['FILEMOUNTS'] = $GLOBALS['BE_USER']->returnFilemounts();
+               $GLOBALS['BE_USER']->getFileStorages();
+               $GLOBALS['FILEMOUNTS'] = $GLOBALS['BE_USER']->groupData['filemounts'];
                return $this;
        }
 
@@ -958,4 +959,4 @@ class Bootstrap {
 }
 
 
-?>
\ No newline at end of file
+?>
index 3fc228e..e31e551 100644 (file)
@@ -105,7 +105,8 @@ class ElementBrowserController {
                                foreach ($altMountPoints as $filePathRelativeToFileadmindir) {
                                        $GLOBALS['BE_USER']->addFileMount('', $filePathRelativeToFileadmindir, $filePathRelativeToFileadmindir, 1, 'readonly');
                                }
-                               $GLOBALS['FILEMOUNTS'] = $GLOBALS['BE_USER']->returnFilemounts();
+                               $GLOBALS['BE_USER']->getFileStorages();
+                               $GLOBALS['FILEMOUNTS'] = $GLOBALS['BE_USER']->groupData['filemounts'];
                        }
                        break;
                }
@@ -166,4 +167,4 @@ class ElementBrowserController {
 }
 
 
-?>
\ No newline at end of file
+?>
index ff7e924..84627db 100644 (file)
@@ -44,7 +44,8 @@ class BrowseLinksController {
                        foreach ($altMountPoints as $filePathRelativeToFileadmindir) {
                                $GLOBALS['BE_USER']->addFileMount('', $filePathRelativeToFileadmindir, $filePathRelativeToFileadmindir, 1, 'readonly');
                        }
-                       $GLOBALS['FILEMOUNTS'] = $GLOBALS['BE_USER']->returnFilemounts();
+                       $GLOBALS['BE_USER']->getFileStorages();
+                       $GLOBALS['FILEMOUNTS'] = $GLOBALS['BE_USER']->groupData['filemounts'];
                }
                // Render type by user function
                $browserRendered = FALSE;
@@ -84,4 +85,4 @@ class BrowseLinksController {
 }
 
 
-?>
\ No newline at end of file
+?>
index 36daeb7..1ea419e 100644 (file)
@@ -28,7 +28,8 @@ class SelectImageController {
                        foreach ($altMountPoints as $filePathRelativeToFileadmindir) {
                                $GLOBALS['BE_USER']->addFileMount('', $filePathRelativeToFileadmindir, $filePathRelativeToFileadmindir, 1, 'readonly');
                        }
-                       $GLOBALS['FILEMOUNTS'] = $GLOBALS['BE_USER']->returnFilemounts();
+                       $GLOBALS['BE_USER']->getFileStorages();
+                       $GLOBALS['FILEMOUNTS'] = $GLOBALS['BE_USER']->groupData['filemounts'];
                }
                // Rendering type by user function
                $browserRendered = FALSE;
@@ -68,4 +69,4 @@ class SelectImageController {
 }
 
 
-?>
\ No newline at end of file
+?>