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'];
} }
} }
\ No newline at end of file
{ {
"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
...@@ -18,7 +18,7 @@ LU API v2+ ...@@ -18,7 +18,7 @@ LU API v2+
* Single Address Name - Choose an address to display contacts only in that address * Single Address Name - Choose an address to display contacts only in that address
* Mini navigation - Choose to show or not show mini navigation * Mini navigation - Choose to show or not show mini navigation
* Default navigation - Choose what view will be rendered as default * Default navigation - Choose what view will be rendered as default
## Template override constants ## Template override constants
``` ```
...@@ -26,18 +26,18 @@ LU API v2+ ...@@ -26,18 +26,18 @@ LU API v2+
view.templateRootPath = EXT:lu_contacts/Resources/Private/Templates/ view.templateRootPath = EXT:lu_contacts/Resources/Private/Templates/
view.partialRootPath = EXT:lu_contacts/Resources/Private/Partials/ view.partialRootPath = EXT:lu_contacts/Resources/Private/Partials/
view.layoutRootPath = EXT:lu_contacts/Resources/Private/Layouts/ view.layoutRootPath = EXT:lu_contacts/Resources/Private/Layouts/
settings.cssFile = EXT:lu_contacts/Resources/Public/Css/styles.css settings.cssFile = EXT:lu_contacts/Resources/Public/Css/styles.css
} }
``` ```
## Install requirements ## Install requirements
* Check solr data status * Check solr data status
* Check LU_API version * Check LU_API version
* Create frontend templates * Create frontend templates
* Reconfigure realurl (standard example in Hooks > RealUrlAutoConfiguration) * Reconfigure realurl (standard example in Hooks > RealUrlAutoConfiguration)
## Author ## Author
Dainis Abols <dainis.abols@lu.lv> Dainis Abols <dainis.abols@lu.lv>
Supports Markdown
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