forked from science-ation/science-ation
use 'events' and 'locations' instead of 'list' in the return object
This commit is contained in:
parent
0a02525d14
commit
b5ed7c174f
8
api.php
8
api.php
@ -43,12 +43,12 @@ switch($request[0]) {
|
||||
case 'list':
|
||||
/* APIDOC: locations/list
|
||||
description(lists locations at the current conference)
|
||||
return(list array)
|
||||
return(locations array)
|
||||
*/
|
||||
$locationData = getLocationList($_SESSION['conferences_id']);
|
||||
if(is_array($locationData)){
|
||||
$ret['status'] = 'ok';
|
||||
$ret['list'] = $locationData;
|
||||
$ret['locations'] = $locationData;
|
||||
}else{
|
||||
$ret['status'] = 'error';
|
||||
$ret['error'] = $locationData;
|
||||
@ -74,12 +74,12 @@ switch($request[0]) {
|
||||
case 'list':
|
||||
/* APIDOC: events/list
|
||||
description(gets a list of all events at the current conference, and team information if applicable)
|
||||
return(list array)
|
||||
return(events array)
|
||||
*/
|
||||
$eventData = getEventList($_SESSION['conferences_id'], $school_id);
|
||||
if(is_array($eventData)){
|
||||
$ret['status'] = 'ok';
|
||||
$ret['list'] = $eventData;
|
||||
$ret['events'] = $eventData;
|
||||
}else{
|
||||
$ret['status'] = 'error';
|
||||
$ret['error'] = $eventData;
|
||||
|
Loading…
Reference in New Issue
Block a user