From 4ccd1511992e02fc26d0097ef4f45e887e3a6b9b Mon Sep 17 00:00:00 2001 From: Georg Ringer Date: Tue, 20 Sep 2022 20:21:30 +0200 Subject: [PATCH] [BUGFIX] Fix notice --- Classes/Hooks/PageRendererHook.php | 6 +++--- ext_emconf.php | 18 +++++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Classes/Hooks/PageRendererHook.php b/Classes/Hooks/PageRendererHook.php index 2fe455c..3a9d3a0 100644 --- a/Classes/Hooks/PageRendererHook.php +++ b/Classes/Hooks/PageRendererHook.php @@ -14,17 +14,17 @@ class PageRendererHook public function run(array &$params): void { - if ($this->getBackendUser()->user['lang'] === self::LANGUAGE_KEY) { + if ($this->getBackendUser()->user['uid'] ?? 0 && ($this->getBackendUser()->user['lang'] ?? '') === self::LANGUAGE_KEY) { $projectIdentifier = $this->getProjectIdentifier(); if ($projectIdentifier) { $js = ' '; - $params['jsLibs'] = $js.$params['jsLibs']; + $params['jsLibs'] = $js . $params['jsLibs']; } } } diff --git a/ext_emconf.php b/ext_emconf.php index cd59f72..2d93ff1 100755 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -1,19 +1,19 @@ 'Crowdin', - 'description' => '', - 'category' => 'be', - 'author' => 'Georg Ringer', - 'author_email' => '', - 'state' => 'beta', + 'title' => 'Crowdin', + 'description' => 'In-Context localization of XLF files handled by crowdin directly in the backend', + 'category' => 'be', + 'author' => 'Georg Ringer', + 'author_email' => '', + 'state' => 'beta', 'clearCacheOnLoad' => true, - 'version' => '2.0.0', - 'constraints' => [ + 'version' => '2.0.1', + 'constraints' => [ 'depends' => [ 'typo3' => '10.4.0-11.9.99', ], 'conflicts' => [], - 'suggests' => [], + 'suggests' => [], ], ];