[BUGFIX] Indexed search static call to non-static function 69/30069/3
authorMarkus Klein <klein.t3@mfc-linz.at>
Tue, 13 May 2014 15:57:58 +0000 (17:57 +0200)
committerMarkus Klein <klein.t3@mfc-linz.at>
Thu, 29 May 2014 10:06:35 +0000 (12:06 +0200)
Resolves: #58756
Releases: 6.2
Change-Id: Ide09c7792e9b24afe480230893cac18570ce4f19
Reviewed-on: https://review.typo3.org/30069
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/indexed_search/Classes/Controller/IndexingStatisticsController.php

index 95ffe4c..b4e052e 100644 (file)
@@ -23,6 +23,7 @@ namespace TYPO3\CMS\IndexedSearch\Controller;
  *
  *  This copyright notice MUST APPEAR in all copies of the script!
  ***************************************************************/
+use TYPO3\CMS\Core\Utility\GeneralUtility;
 
 /**
  * Module extension (addition to function menu) 'Indexed search statistics' for the 'indexed_search' extension.
@@ -154,8 +155,7 @@ class IndexingStatisticsController extends \TYPO3\CMS\Backend\Module\AbstractFun
         * @todo Define visibility
         */
        public function extGetTreeList($id, $depth, $begin = 0, $perms_clause) {
-               // TODO: Fix this as this calls a non-static method
-               return \TYPO3\CMS\Backend\FrontendBackendUserAuthentication::extGetTreeList($id, $depth, $begin, $perms_clause);
+               return GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\FrontendBackendUserAuthentication')->extGetTreeList($id, $depth, $begin, $perms_clause);
        }
 
        /**