[BUGFIX] Hide CSH button if context_help is disabled 97/45197/4
authorGianluigi Martino <gmartino27@gmail.com>
Wed, 9 Dec 2015 15:38:00 +0000 (16:38 +0100)
committerAndreas Fernandez <typo3@scripting-base.de>
Wed, 9 Dec 2015 20:04:37 +0000 (21:04 +0100)
Do not show the help icon if the extension "context_help" is not installed.

Change-Id: Ia23c5c1a2d61a1e24e9de96def2fdb6a0a69b99f
Resolves: #71659
Releases: master
Reviewed-on: https://review.typo3.org/45197
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Tested-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/backend/Classes/Utility/BackendUtility.php

index f519a4d..64a8944 100755 (executable)
@@ -2835,6 +2835,10 @@ class BackendUtility
      */
     public static function wrapInHelp($table, $field, $text = '', array $overloadHelpText = array())
     {
+        if (!ExtensionManagementUtility::isLoaded('context_help')) {
+            return '';
+        }
+
         // Initialize some variables
         $helpText = '';
         $abbrClassAdd = '';