Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sg_youtube
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TYPO3
sg_youtube
Commits
94597082
Commit
94597082
authored
1 year ago
by
Georgi
Browse files
Options
Downloads
Patches
Plain Diff
[BUGFIX] TYPO3 v10 fixes
parent
08c51a75
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!9
Feature make standalone
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Classes/Form/Element/LicenceStatus.php
+11
-6
11 additions, 6 deletions
Classes/Form/Element/LicenceStatus.php
Configuration/Services.yaml
+3
-2
3 additions, 2 deletions
Configuration/Services.yaml
with
14 additions
and
8 deletions
Classes/Form/Element/LicenceStatus.php
+
11
−
6
View file @
94597082
...
...
@@ -35,11 +35,16 @@ class LicenceStatus extends AbstractFormElement
return
[];
}
$errorOrWarning
=
match
(
$responseData
[
'error'
])
{
1
=>
'danger'
,
2
=>
'warning'
,
0
=>
'success'
};
switch
(
$responseData
[
'error'
])
{
case
1
:
$errorOrWarning
=
'danger'
;
break
;
case
2
:
$errorOrWarning
=
'warning'
;
break
;
default
:
$errorOrWarning
=
'success'
;
}
$message
=
'<div class="alert alert-'
.
$errorOrWarning
.
'" role="'
.
$errorOrWarning
...
...
@@ -61,4 +66,4 @@ class LicenceStatus extends AbstractFormElement
$responseData
=
LicenceCheckService
::
getLicenseCheckResponseData
(
TRUE
);
return
$responseData
;
}
}
\ No newline at end of file
}
This diff is collapsed.
Click to expand it.
Configuration/Services.yaml
+
3
−
2
View file @
94597082
...
...
@@ -21,7 +21,7 @@ services:
class
:
TYPO3\CMS\Core\Cache\Frontend\FrontendInterface
factory
:
[
'
@TYPO3\CMS\Core\Cache\CacheManager'
,
'
getCache'
]
arguments
:
[
'
sgyoutube_cache'
]
SGalinski\SgYoutube\Form\Element\LicenceStatus
:
autowire
:
false
autoconfigure
:
false
...
...
@@ -30,4 +30,5 @@ services:
autowire
:
true
tags
:
-
name
:
event.listener
identifier
:
'
sgYoutubePluginRenderer'
\ No newline at end of file
identifier
:
'
sgYoutubePluginRenderer'
event
:
TYPO3\CMS\Backend\View\Event\PageContentPreviewRenderingEvent
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment