File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515use TYPO3 \CMS \Core \Database \Connection ;
1616use TYPO3 \CMS \Core \Database \Query \QueryBuilder ;
1717use TYPO3 \CMS \Core \Localization \LanguageService ;
18- use TYPO3 \CMS \Core \Localization \LanguageServiceFactory ;
1918use TYPO3 \CMS \Core \Utility \GeneralUtility ;
2019use TYPO3 \CMS \Dashboard \WidgetApi ;
2120use TYPO3 \CMS \Dashboard \Widgets \ChartDataProviderInterface ;
@@ -29,7 +28,7 @@ public function __construct(
2928 private readonly QueryBuilder $ queryBuilder ,
3029 array $ options = []
3130 ) {
32- $ this ->languageService = GeneralUtility:: makeInstance (LanguageServiceFactory::class)-> create ( $ GLOBALS ['BE_USER ' ]-> uc [ ' lang ' ]) ;
31+ $ this ->languageService = $ GLOBALS ['LANG ' ] ;
3332 $ this ->options = array_merge (
3433 [
3534 'fieldName ' => 'tx_cart_domain_model_order_item.order_date ' ,
Original file line number Diff line number Diff line change 1414use Extcode \Cart \Constants ;
1515use TYPO3 \CMS \Core \Database \Query \QueryBuilder ;
1616use TYPO3 \CMS \Core \Localization \LanguageService ;
17- use TYPO3 \CMS \Core \Localization \LanguageServiceFactory ;
18- use TYPO3 \CMS \Core \Utility \GeneralUtility ;
1917use TYPO3 \CMS \Dashboard \WidgetApi ;
2018use TYPO3 \CMS \Dashboard \Widgets \ChartDataProviderInterface ;
2119
@@ -28,7 +26,7 @@ public function __construct(
2826 private readonly QueryBuilder $ queryBuilder ,
2927 array $ options = []
3028 ) {
31- $ this ->languageService = GeneralUtility:: makeInstance (LanguageServiceFactory::class)-> create ( $ GLOBALS ['BE_USER ' ]-> uc [ ' lang ' ]) ;
29+ $ this ->languageService = $ GLOBALS ['LANG ' ] ;
3230 $ this ->options = array_merge (
3331 [
3432 'fieldName ' => 'tx_cart_domain_model_order_item.order_date ' ,
You can’t perform that action at this time.
0 commit comments