mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-03 09:49:30 +02:00
fixed the issue with a lack of gettext (define ngettext if it does not exist)
This commit is contained in:
parent
94f37cd899
commit
e99f7c6112
3 changed files with 13 additions and 0 deletions
|
@ -27,6 +27,7 @@ if (AJAX_INCLUDE != '1') { exit; }
|
|||
switch ($_REQUEST['action']) {
|
||||
case 'delete_vote':
|
||||
$democratic = Democratic::get_current_playlist();
|
||||
$democratic->set_parent();
|
||||
$democratic->remove_vote($_REQUEST['row_id']);
|
||||
|
||||
ob_start();
|
||||
|
@ -39,6 +40,7 @@ switch ($_REQUEST['action']) {
|
|||
case 'add_vote':
|
||||
|
||||
$democratic = Democratic::get_current_playlist();
|
||||
$democratic->set_parent();
|
||||
$democratic->add_vote($_REQUEST['object_id'],$_REQUEST['type']);
|
||||
|
||||
ob_start();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue