[BUGFIX] No longer call wrapClickMenuOnIcon statically 64/43764/2
authorMathias Schreiber <mathias.schreiber@wmdb.de>
Sat, 3 Oct 2015 17:43:29 +0000 (19:43 +0200)
committerMathias Schreiber <mathias.schreiber@wmdb.de>
Sun, 4 Oct 2015 11:27:02 +0000 (13:27 +0200)
Removed leftover from ModuleTemplateAPI cleanup

Releases: master
Resolves: #70330
Change-Id: I775dd9d6204ae580694749b55442e4fd98b3d7e9
Reviewed-on: http://review.typo3.org/43764
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Tested-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Josef Glatz <jousch@gmail.com>
Tested-by: Josef Glatz <jousch@gmail.com>
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
typo3/sysext/backend/Classes/Template/Components/MetaInformation.php

index ae349ee..c8dddef 100644 (file)
@@ -84,6 +84,7 @@ class MetaInformation {
         */
        public function getRecordInformation() {
                $iconFactory = GeneralUtility::makeInstance(IconFactory::class);
+               $moduleTemplate = GeneralUtility::makeInstance(ModuleTemplate::class);
                $pageRecord = $this->recordArray;
                // Add icon with clickMenu, etc:
                // If there IS a real page
@@ -91,7 +92,7 @@ class MetaInformation {
                        $altText = BackendUtility::getRecordIconAltText($pageRecord, 'pages');
                        $iconImg = IconUtility::getSpriteIconForRecord('pages', $pageRecord, array('title' => $altText));
                        // Make Icon:
-                       $theIcon = ModuleTemplate::wrapClickMenuOnIcon($iconImg, 'pages', $pageRecord['uid']);
+                       $theIcon = $moduleTemplate->wrapClickMenuOnIcon($iconImg, 'pages', $pageRecord['uid']);
                        $uid = $pageRecord['uid'];
                        $title = BackendUtility::getRecordTitle('pages', $pageRecord);
                } else {
@@ -102,7 +103,7 @@ class MetaInformation {
                                '">' .
                                $iconFactory->getIcon('apps-pagetree-root', Icon::SIZE_SMALL)->render() . '</span>';
                        if ($this->getBackendUser()->isAdmin()) {
-                               $theIcon = ModuleTemplate::wrapClickMenuOnIcon($iconImg, 'pages', 0);
+                               $theIcon = $moduleTemplate->wrapClickMenuOnIcon($iconImg, 'pages', 0);
                        } else {
                                $theIcon = $iconImg;
                        }