[BUGFIX] Wrong method call
authorChristian Kuhn <lolli@schwarzbu.ch>
Thu, 11 Apr 2013 20:21:13 +0000 (22:21 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 11 Apr 2013 20:29:16 +0000 (22:29 +0200)
During #46950 a wrong call extbase ExtensionUtility instead of core
ExtensionManagementUtility slipped through and is fixed by the patch.

Fixes: #47143
Related: #46950
Releases: 6.1

Change-Id: I0cfccc457c2c8990e26907c743d89b94a8e921d9
Reviewed-on: https://review.typo3.org/19812
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/version/Classes/Controller/VersionModuleController.php

index d7a16d5..4410336 100644 (file)
@@ -499,7 +499,7 @@ class VersionModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClass
                        $pageModule = BackendUtility::isModuleSetInTBE_MODULES($newPageModule) ? $newPageModule : 'web_layout';
                        // Perform some acccess checks:
                        $a_wl = $GLOBALS['BE_USER']->check('modules', 'web_list');
-                       $a_wp = \TYPO3\CMS\Extbase\Utility\ExtensionUtility::isLoaded('cms') && $GLOBALS['BE_USER']->check('modules', $pageModule);
+                       $a_wp = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('cms') && $GLOBALS['BE_USER']->check('modules', $pageModule);
                        $adminLink .= '<a href="#" onclick="top.loadEditId(' . $row['uid'] . ');top.goToModule(\'' . $pageModule . '\'); return false;">' . \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('actions-page-open') . '</a>';
                        $adminLink .= '<a href="#" onclick="top.loadEditId(' . $row['uid'] . ');top.goToModule(\'web_list\'); return false;">' . \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('actions-system-list-open') . '</a>';
                        // "View page" icon is added: