Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Open
LU Study Catalogue
Commits
a335686d
Commit
a335686d
authored
Apr 27, 2021
by
Dainis Abols
Browse files
TYPO3 v10 Compatability
parent
9050ce5b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Classes/Controller/CourseController.php
View file @
a335686d
...
@@ -85,17 +85,16 @@ class CourseController extends ActionController
...
@@ -85,17 +85,16 @@ class CourseController extends ActionController
*/
*/
public
function
__construct
()
public
function
__construct
()
{
{
parent
::
__construct
();
// Disable cache in case of missing chash in URL
// Disable cache in case of missing chash in URL
$GLOBALS
[
'TSFE'
]
->
set_no_cache
();
$GLOBALS
[
'TSFE'
]
->
set_no_cache
();
// Set language data
// Set language data
$languageAspect
=
GeneralUtility
::
makeInstance
(
Context
::
class
)
->
getAspect
(
'language'
);
$languageAspect
=
GeneralUtility
::
makeInstance
(
Context
::
class
)
->
getAspect
(
'language'
);
$iso
=
$GLOBALS
[
'TYPO3_REQUEST'
]
->
getAttribute
(
'language'
)
->
getTwoLetterIsoCode
();
$this
->
language
=
[
$this
->
language
=
[
'id'
=>
$languageAspect
->
getId
(),
'id'
=>
$languageAspect
->
getId
(),
'iso'
=>
$
GLOBALS
[
'TSFE'
]
->
sys_language_isocode
,
'iso'
=>
$
iso
,
'code'
=>
$
GLOBALS
[
'TSFE'
]
->
sys_language_isocode
==
'lv'
?
'lat'
:
'eng'
,
'code'
=>
$
iso
==
'lv'
?
'lat'
:
'eng'
,
];
];
}
}
...
...
Classes/Helpers/DataHelper.php
View file @
a335686d
...
@@ -65,7 +65,7 @@ class DataHelper
...
@@ -65,7 +65,7 @@ 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
()
{
{
...
...
composer.json
View file @
a335686d
{
{
"name"
:
"luitd/lu-study-catalogue"
,
"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"
,
"description"
:
"Study catalogues (Course catalogue, Program catalogue) TYPO3 extension for University of Latvia"
,
"type"
:
"typo3-cms-extension"
,
"type"
:
"typo3-cms-extension"
,
"keywords"
:
[
"keywords"
:
[
...
...
ext_emconf.php
View file @
a335686d
...
@@ -10,11 +10,11 @@ $EM_CONF[$_EXTKEY] = [
...
@@ -10,11 +10,11 @@ $EM_CONF[$_EXTKEY] = [
'state'
=>
'stable'
,
'state'
=>
'stable'
,
'uploadfolder'
=>
1
,
'uploadfolder'
=>
1
,
'clearCacheOnLoad'
=>
1
,
'clearCacheOnLoad'
=>
1
,
'version'
=>
'2.4.
3
'
,
'version'
=>
'2.4.
5
'
,
'constraints'
=>
[
'constraints'
=>
[
'depends'
=>
[
'depends'
=>
[
'typo3'
=>
'9.5.0-
9.5
.99'
,
'typo3'
=>
'9.5.0-
10.9
.99'
,
'lu_api'
=>
'2.
0
.0-2.9.99'
,
'lu_api'
=>
'2.
7
.0-2.9
9
.99'
,
],
],
'conflicts'
=>
[],
'conflicts'
=>
[],
'suggests'
=>
[],
'suggests'
=>
[],
...
...
readme.md
View file @
a335686d
...
@@ -4,12 +4,12 @@
...
@@ -4,12 +4,12 @@
## Version
## Version
2.
4.
3
2.
4.
6
## Dependencies
## Dependencies
*
TYPO3 v9.5
*
TYPO3 v9.5
| v10
*
LU API
*
LU API
v2+
*
LU Content (Optional for title displays)
*
LU Content (Optional for title displays)
## Author
## Author
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment