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

Rerolled depreaction fix (not yet implemented in TYPO3)

4.0.4
parent 209be17b
{
"name": "luitd/lu-contacts",
"version": "4.0.3",
"version": "4.0.4",
"description": "University of Latvia contact list",
"type": "typo3-cms-extension",
"keywords": [
......
......@@ -9,7 +9,7 @@ $EM_CONF[$_EXTKEY] = [
'author_email' => 'dainis.abols@lu.lv',
'state' => 'stable',
'clearCacheOnLoad' => true,
'version' => '4.0.3',
'version' => '4.0.4',
'dependencies' => 'typo3,lu_api',
'constraints' => [
'depends' => [
......
......@@ -4,12 +4,10 @@ if (!defined('TYPO3_MODE')) {
}
/*
* Backend check with fallback:
* Suggested new aproach does not work yet:
* https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/11.0/Deprecation-92947-DeprecateTYPO3_MODEAndTYPO3_REQUESTTYPEConstants.html
*/
if (($GLOBALS['TYPO3_REQUEST'] ?? null) instanceof \Psr\Http\Message\ServerRequestInterface
&& \TYPO3\CMS\Core\Http\ApplicationType::fromRequest($GLOBALS['TYPO3_REQUEST'])->isBackend()
) {
if (TYPO3_MODE === 'BE') {
call_user_func(
function () {
// Register icons
......
......@@ -4,7 +4,7 @@ Extension to render list of contacts for University of Latvia
## Version
4.0.3
4.0.4
## Dependencies
......
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