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

Language object changes

v3.3.1
parent e3b80945
......@@ -2,8 +2,8 @@
namespace Lu\LuContacts\Helpers;
use TYPO3\CMS\Core\Localization\LanguageService;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Lang\LanguageService;
/**
* Class DataHelper
......@@ -79,10 +79,13 @@ class DataHelper
/**
* Retrieve LanguageService
*
* @return mixed|\TYPO3\CMS\Lang\LanguageService
* @return mixed|\TYPO3\CMS\Core\Localization\LanguageService
*/
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",
"version": "3.3.0",
"version": "3.3.1",
"description": "University of Latvia contact list render",
"type": "typo3-cms-extension",
"keywords": [
......
......@@ -9,7 +9,7 @@ $EM_CONF[$_EXTKEY] = [
'author_email' => 'dainis.abols@lu.lv',
'state' => 'stable',
'clearCacheOnLoad' => true,
'version' => '3.3.0',
'version' => '3.3.1',
'dependencies' => 'typo3,lu_api',
'constraints' => [
'depends' => [
......
......@@ -4,7 +4,7 @@ Extension to render list of contacts for University of Latvia
## Version
3.3.0
3.3.1
## Dependencies
......@@ -18,7 +18,7 @@ LU API v2+
* Single Address Name - Choose an address to display contacts only in that address
* Mini navigation - Choose to show or not show mini navigation
* Default navigation - Choose what view will be rendered as default
## Template override constants
```
......@@ -26,18 +26,18 @@ LU API v2+
view.templateRootPath = EXT:lu_contacts/Resources/Private/Templates/
view.partialRootPath = EXT:lu_contacts/Resources/Private/Partials/
view.layoutRootPath = EXT:lu_contacts/Resources/Private/Layouts/
settings.cssFile = EXT:lu_contacts/Resources/Public/Css/styles.css
}
```
## Install requirements
* Check solr data status
* Check LU_API version
* Create frontend templates
* Reconfigure realurl (standard example in Hooks > RealUrlAutoConfiguration)
## Author
Dainis Abols <dainis.abols@lu.lv>
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