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
Radio Naba
Commits
0ca70772
Commit
0ca70772
authored
Sep 23, 2021
by
Dainis Abols
Browse files
Fixed empty song top
v4.0.4
parent
3b625254
Changes
5
Show whitespace changes
Inline
Side-by-side
Classes/Controller/VotesController.php
View file @
0ca70772
...
@@ -129,7 +129,6 @@ class VotesController extends ActionController
...
@@ -129,7 +129,6 @@ class VotesController extends ActionController
{
{
// Gather request data
// Gather request data
$song_id
=
$this
->
request
->
hasArgument
(
'song_id'
)
?
$this
->
request
->
getArgument
(
'song_id'
)
:
null
;
$song_id
=
$this
->
request
->
hasArgument
(
'song_id'
)
?
$this
->
request
->
getArgument
(
'song_id'
)
:
null
;
$song_pid
=
$this
->
songRepository
->
findByUid
(
$song_id
)
->
getPid
();
$isAdmin
=
$this
->
request
->
hasArgument
(
'admin'
)
&&
$this
->
request
->
getArgument
(
'admin'
)
==
1
?
true
:
false
;
$isAdmin
=
$this
->
request
->
hasArgument
(
'admin'
)
&&
$this
->
request
->
getArgument
(
'admin'
)
==
1
?
true
:
false
;
$timePeriod
=
$this
->
request
->
hasArgument
(
'time_period'
)
?
$this
->
request
->
getArgument
(
'time_period'
)
:
time
();
$timePeriod
=
$this
->
request
->
hasArgument
(
'time_period'
)
?
$this
->
request
->
getArgument
(
'time_period'
)
:
time
();
...
@@ -137,6 +136,7 @@ class VotesController extends ActionController
...
@@ -137,6 +136,7 @@ class VotesController extends ActionController
if
(
$song_id
)
{
if
(
$song_id
)
{
$VoteModel
=
new
Vote
();
$VoteModel
=
new
Vote
();
$Datahelper
=
new
DataHelper
();
$Datahelper
=
new
DataHelper
();
$song_pid
=
$this
->
songRepository
->
findByUid
(
$song_id
)
->
getPid
();
// Check if admin increase request
// Check if admin increase request
if
(
$isAdmin
)
{
if
(
$isAdmin
)
{
...
...
README.md
View file @
0ca70772
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
## Version
## Version
4.
0.
3
4.
0.
4
## Dependencies
## Dependencies
...
...
Resources/Private/Partials/SongLine.html
View file @
0ca70772
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<div
class=
"songName"
>
{song.artist} - {song.title}
</div>
<div
class=
"songName"
>
{song.artist} - {song.title}
</div>
</div>
</div>
<label
class=
"songVote"
>
<label
class=
"songVote"
>
<f:form.radio
class=
"vote-radio"
name=
"song_id"
value=
"{song.uid}"
/>
<f:form.radio
class=
"vote-radio"
name=
"song_id"
value=
"{song.uid}"
additionalAttributes=
"{required: ''}"
/>
<span
class=
"checkmark"
></span>
<span
class=
"checkmark"
></span>
</label>
</label>
</label>
</label>
composer.json
View file @
0ca70772
{
{
"name"
:
"luitd/lu-nabamusic"
,
"name"
:
"luitd/lu-nabamusic"
,
"version"
:
"4.0.
3
"
,
"version"
:
"4.0.
4
"
,
"description"
:
"Radio NABA plugin used for live stream, song tops and much more"
,
"description"
:
"Radio NABA plugin used for live stream, song tops and much more"
,
"type"
:
"typo3-cms-extension"
,
"type"
:
"typo3-cms-extension"
,
"keywords"
:
[
"keywords"
:
[
...
...
ext_emconf.php
View file @
0ca70772
...
@@ -13,7 +13,7 @@ $EM_CONF[$_EXTKEY] = [
...
@@ -13,7 +13,7 @@ $EM_CONF[$_EXTKEY] = [
'modify_tables'
=>
''
,
'modify_tables'
=>
''
,
'clearCacheOnLoad'
=>
1
,
'clearCacheOnLoad'
=>
1
,
'lockType'
=>
''
,
'lockType'
=>
''
,
'version'
=>
'4.0.
3
'
,
'version'
=>
'4.0.
4
'
,
'constraints'
=>
[
'constraints'
=>
[
'depends'
=>
[
'depends'
=>
[
'typo3'
=>
'10.0.0-10.9.99'
,
'typo3'
=>
'10.0.0-10.9.99'
,
...
...
Write
Preview
Markdown
is supported
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