mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-05 10:49:37 +02:00
Attempt to fix #548 reference function that exists...
This commit is contained in:
parent
4fcffbdae6
commit
e6bf50079a
1 changed files with 4 additions and 4 deletions
|
@ -338,7 +338,7 @@ switch ($_REQUEST['action']) {
|
|||
case 'stop':
|
||||
$result_status = $localplay->$_REQUEST['command']();
|
||||
$xml_array = array('localplay'=>array('command'=>array($_REQUEST['command']=>make_bool($result_status))));
|
||||
echo xmlData::build_from_array($xml_array);
|
||||
echo xmlData::keyed_array($xml_array);
|
||||
break;
|
||||
default:
|
||||
// They are doing it wrong
|
||||
|
@ -364,7 +364,7 @@ switch ($_REQUEST['action']) {
|
|||
|
||||
// If everything was ok
|
||||
$xml_array = array('action'=>$_REQUEST['action'],'method'=>$_REQUEST['method'],'result'=>true);
|
||||
echo xmlData::build_from_array($xml_array);
|
||||
echo xmlData::keyed_array($xml_array);
|
||||
break;
|
||||
case 'devote':
|
||||
$type = 'song';
|
||||
|
@ -377,7 +377,7 @@ switch ($_REQUEST['action']) {
|
|||
|
||||
// Everything was ok
|
||||
$xml_array = array('action'=>$_REQUEST['action'],'method'=>$_REQUEST['method'],'result'=>true);
|
||||
echo xmlData::build_from_array($xml_array);
|
||||
echo xmlData::keyed_array($xml_array);
|
||||
break;
|
||||
case 'playlist':
|
||||
$objects = $democratic->get_items();
|
||||
|
@ -388,7 +388,7 @@ switch ($_REQUEST['action']) {
|
|||
case 'play':
|
||||
$url = $democratic->play_url();
|
||||
$xml_array = array('url'=>$url);
|
||||
echo xmlData::build_from_array($xml_array);
|
||||
echo xmlData::keyed_array($xml_array);
|
||||
break;
|
||||
default:
|
||||
echo xmlData::error('405',_('Invalid Request'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue