[BUGFIX] Change path to label of preview pane in admin panel 18/56418/3
authorTobi Kretschmann <tobi@tobishome.de>
Thu, 22 Mar 2018 07:19:04 +0000 (08:19 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Thu, 22 Mar 2018 13:10:25 +0000 (14:10 +0100)
the label is moved to a separate locallang file.
Hence the method getLabel needs to get the label from the new file.

Resolves: #84519
Releases: master
Change-Id: I16a961499ad7ac9a26d2cc92a7ea3ef80413fc15
Reviewed-on: https://review.typo3.org/56418
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Reviewed-by: Steffen Frese <steffenf14@gmail.com>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/adminpanel/Classes/Modules/PreviewModule.php

index 74f33d5..b22850a 100644 (file)
@@ -89,7 +89,8 @@ class PreviewModule extends AbstractModule
      */
     public function getLabel(): string
     {
-        return $this->extGetLL('preview');
+        $locallangFileAndPath = 'LLL:' . $this->extResources . '/Language/locallang_preview.xlf:module.label';
+        return $this->getLanguageService()->sL($locallangFileAndPath);
     }
 
     public function initializeModule(): void