Skip to content

Commit

Permalink
[BUGFIX] Fix notice
Browse files Browse the repository at this point in the history
  • Loading branch information
georgringer committed Sep 20, 2022
1 parent c0a89f2 commit 4ccd151
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions Classes/Hooks/PageRendererHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '
<script type="text/javascript">
var _jipt = [];
_jipt.push(["project", '.GeneralUtility::quoteJSvalue($projectIdentifier).']);
_jipt.push(["project", ' . GeneralUtility::quoteJSvalue($projectIdentifier) . ']);
</script>
<script type="text/javascript" src="https://cdn.crowdin.com/jipt/jipt.js"></script>';

$params['jsLibs'] = $js.$params['jsLibs'];
$params['jsLibs'] = $js . $params['jsLibs'];
}
}
}
Expand Down
18 changes: 9 additions & 9 deletions ext_emconf.php
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<?php

$EM_CONF[$_EXTKEY] = [
'title' => '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' => [],
],
];

0 comments on commit 4ccd151

Please sign in to comment.