From 929ee9e879e12ed7bca3f7401331a5dff6ed732b Mon Sep 17 00:00:00 2001 From: Michael Oehlhof <typo3@oehlhof.de> Date: Sun, 25 Oct 2015 23:03:56 +0100 Subject: [PATCH] [TASK] Show correct module action names for DBAL Debug in bookmark list Resolves: #71012 Releases: master Change-Id: I2f08082e2751290bb24ef104a2d1deed1fd33c3f Reviewed-on: https://review.typo3.org/44274 Reviewed-by: Daniel Goerz <ervaude@gmail.com> Tested-by: Daniel Goerz <ervaude@gmail.com> Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de> Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de> --- typo3/sysext/dbal/Classes/Controller/ModuleController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/typo3/sysext/dbal/Classes/Controller/ModuleController.php b/typo3/sysext/dbal/Classes/Controller/ModuleController.php index 71442cfaa8e3..984d696f3b96 100644 --- a/typo3/sysext/dbal/Classes/Controller/ModuleController.php +++ b/typo3/sysext/dbal/Classes/Controller/ModuleController.php @@ -98,6 +98,7 @@ class ModuleController extends BaseScriptClass // DBAL page title: $this->content .= '<h1>' . $languageService->getLL('title') . '</h1>'; $this->generateMenu(); + $shortcutName = $languageService->getLL('Debug_log'); // Debug log: switch ($this->MOD_SETTINGS['function']) { case 'info': @@ -105,12 +106,14 @@ class ModuleController extends BaseScriptClass $languageService->getLL('Cached_info'), $this->printCachedInfo() ); + $shortcutName = $languageService->getLL('Cached_info'); break; case 'sqlcheck': $this->content .= $this->moduleTemplate->section( $languageService->getLL('SQL_check'), $this->printSqlCheck() ); + $shortcutName = $languageService->getLL('SQL_check'); break; case 0: $this->content .= $this->moduleTemplate->section( @@ -122,6 +125,7 @@ class ModuleController extends BaseScriptClass // ShortCut $shortcutButton = $this->moduleTemplate->getDocHeaderComponent()->getButtonBar()->makeShortcutButton() ->setModuleName($this->MCONF['name']) + ->setDisplayName($shortcutName) ->setSetVariables(['function']); $this->moduleTemplate->getDocHeaderComponent()->getButtonBar()->addButton($shortcutButton); } -- GitLab