[TASK] Show correct module action names for DBAL Debug in bookmark list 74/44274/2
authorMichael Oehlhof <typo3@oehlhof.de>
Sun, 25 Oct 2015 22:03:56 +0000 (23:03 +0100)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Sun, 25 Oct 2015 22:20:34 +0000 (23:20 +0100)
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

index 71442cf..984d696 100644 (file)
@@ -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);
     }