[BUGFIX] impext: export is broken
authorPhilipp Gampe <philipp.gampe@typo3.org>
Mon, 26 Nov 2012 22:08:01 +0000 (23:08 +0100)
committerHelmut Hummel <helmut.hummel@typo3.org>
Mon, 26 Nov 2012 22:39:34 +0000 (23:39 +0100)
Some uses of the LocalPageTree class do not use the namespaced version.
Use the correct class name.

Fixes: #43317
Releases: 6.0

Change-Id: I46a9fd4ca4ad920b430738587dca9c47b901e033
Reviewed-on: http://review.typo3.org/16760
Reviewed-by: Wouter Wolters
Reviewed-by: Stefan Neufeind
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/impexp/Classes/Controller/ImportExportController.php

index 58776ca..073a78e 100644 (file)
@@ -196,7 +196,7 @@ class ImportExportController extends \TYPO3\CMS\Backend\Module\BaseScriptClass {
                if (isset($inData['pagetree']['id'])) {
                        // Based on click-expandable tree
                        if ($inData['pagetree']['levels'] == -1) {
-                               $pagetree = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('tx_impexp_localPageTree');
+                               $pagetree = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Impexp\\LocalPageTree');
                                $tree = $pagetree->ext_tree($inData['pagetree']['id'], $this->filterPageIds($this->export->excludeMap));
                                $this->treeHTML = $pagetree->printTree($tree);
                                $idH = $pagetree->buffer_idH;
@@ -229,7 +229,7 @@ class ImportExportController extends \TYPO3\CMS\Backend\Module\BaseScriptClass {
                                        if (count($tree->buffer_idH)) {
                                                $idH[$pid]['subrow'] = $tree->buffer_idH;
                                        }
-                                       $pagetree = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Impexp\\ImportExport_localPageTree');
+                                       $pagetree = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Impexp\\LocalPageTree');
                                        $this->treeHTML = $pagetree->printTree($tree->tree);
                                }
                        }