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

TYPO3 v10 Compatability

parent 9050ce5b
......@@ -85,17 +85,16 @@ class CourseController extends ActionController
*/
public function __construct()
{
parent::__construct();
// Disable cache in case of missing chash in URL
$GLOBALS['TSFE']->set_no_cache();
// Set language data
$languageAspect = GeneralUtility::makeInstance(Context::class)->getAspect('language');
$iso = $GLOBALS['TYPO3_REQUEST']->getAttribute('language')->getTwoLetterIsoCode();
$this->language = [
'id' => $languageAspect->getId(),
'iso' => $GLOBALS['TSFE']->sys_language_isocode,
'code' => $GLOBALS['TSFE']->sys_language_isocode == 'lv' ? 'lat' : 'eng',
'iso' => $iso,
'code' => $iso == 'lv' ? 'lat' : 'eng',
];
}
......
......@@ -65,7 +65,7 @@ class DataHelper
/**
* Retrieve LanguageService
*
* @return mixed|\TYPO3\CMS\Lang\LanguageService
* @return mixed|\TYPO3\CMS\Core\Localization\LanguageService
*/
private function getLanguageService()
{
......
{
"name": "luitd/lu-study-catalogue",
"version": "2.4.3",
"version": "2.4.5",
"description": "Study catalogues (Course catalogue, Program catalogue) TYPO3 extension for University of Latvia",
"type": "typo3-cms-extension",
"keywords": [
......
......@@ -10,11 +10,11 @@ $EM_CONF[$_EXTKEY] = [
'state' => 'stable',
'uploadfolder' => 1,
'clearCacheOnLoad' => 1,
'version' => '2.4.3',
'version' => '2.4.5',
'constraints' => [
'depends' => [
'typo3' => '9.5.0-9.5.99',
'lu_api' => '2.0.0-2.9.99',
'typo3' => '9.5.0-10.9.99',
'lu_api' => '2.7.0-2.99.99',
],
'conflicts' => [],
'suggests' => [],
......
......@@ -4,12 +4,12 @@
## Version
2.4.3
2.4.6
## Dependencies
* TYPO3 v9.5
* LU API
* TYPO3 v9.5 | v10
* LU API v2+
* LU Content (Optional for title displays)
## Author
......
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