Commit f74940f7 authored by Dainis Abols's avatar Dainis Abols
Browse files

Language object changes

v3.3.1
parent e3b80945
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
namespace Lu\LuContacts\Helpers; namespace Lu\LuContacts\Helpers;
use TYPO3\CMS\Core\Localization\LanguageService;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility; use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Lang\LanguageService;
/** /**
* Class DataHelper * Class DataHelper
...@@ -79,10 +79,13 @@ class DataHelper ...@@ -79,10 +79,13 @@ class DataHelper
/** /**
* Retrieve LanguageService * Retrieve LanguageService
* *
* @return mixed|\TYPO3\CMS\Lang\LanguageService * @return mixed|\TYPO3\CMS\Core\Localization\LanguageService
*/ */
private function getLanguageService() private function getLanguageService()
{ {
return $GLOBALS['LANG'] ?? new LanguageService(); // Ensure language object is initialized
\TYPO3\CMS\Core\Core\Bootstrap::initializeLanguageObject();
return $GLOBALS['LANG'];
} }
} }
{ {
"name": "luitd/lu-contacts", "name": "luitd/lu-contacts",
"version": "3.3.0", "version": "3.3.1",
"description": "University of Latvia contact list render", "description": "University of Latvia contact list render",
"type": "typo3-cms-extension", "type": "typo3-cms-extension",
"keywords": [ "keywords": [
......
...@@ -9,7 +9,7 @@ $EM_CONF[$_EXTKEY] = [ ...@@ -9,7 +9,7 @@ $EM_CONF[$_EXTKEY] = [
'author_email' => 'dainis.abols@lu.lv', 'author_email' => 'dainis.abols@lu.lv',
'state' => 'stable', 'state' => 'stable',
'clearCacheOnLoad' => true, 'clearCacheOnLoad' => true,
'version' => '3.3.0', 'version' => '3.3.1',
'dependencies' => 'typo3,lu_api', 'dependencies' => 'typo3,lu_api',
'constraints' => [ 'constraints' => [
'depends' => [ 'depends' => [
......
...@@ -4,7 +4,7 @@ Extension to render list of contacts for University of Latvia ...@@ -4,7 +4,7 @@ Extension to render list of contacts for University of Latvia
## Version ## Version
3.3.0 3.3.1
## Dependencies ## Dependencies
......
Markdown is supported
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