Skip to content
Snippets Groups Projects
Commit 5a19b095 authored by Michael Oehlhof's avatar Michael Oehlhof Committed by Christian Kuhn
Browse files

[TASK] Introduce getter for $GLOBALS['LANG'] in ext:context_help

Resolves: #65369
Releases: master
Change-Id: Id488fb523c3b3dcc255f9c5d36af537abec267d0
Reviewed-on: http://review.typo3.org/37298


Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent b200af75
Branches
Tags
No related merge requests found
......@@ -48,7 +48,7 @@ class ContextHelpDataProvider {
public function getTableContextHelp($table) {
$output = array();
if (!isset($GLOBALS['TCA_DESCR'][$table]['columns'])) {
$GLOBALS['LANG']->loadSingleTableDescription($table);
$this->getLanguageService()->loadSingleTableDescription($table);
}
if (is_array($GLOBALS['TCA_DESCR'][$table]) && is_array($GLOBALS['TCA_DESCR'][$table]['columns'])) {
$arrow = \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('actions-view-go-forward');
......@@ -76,4 +76,14 @@ class ContextHelpDataProvider {
return $output;
}
/**
* Returns LanguageService
*
* @return \TYPO3\CMS\Lang\LanguageService
*/
protected function getLanguageService() {
return $GLOBALS['LANG'];
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment