Skip to content

Commit

Permalink
[BUGFIX] Change path to label of preview pane in admin panel
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
d3pendent authored and georgringer committed Mar 22, 2018
1 parent de87933 commit 8c59bff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion typo3/sysext/adminpanel/Classes/Modules/PreviewModule.php
Expand Up @@ -89,7 +89,8 @@ public function getIdentifier(): string
*/
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
Expand Down

0 comments on commit 8c59bff

Please sign in to comment.