Display holidays from JSON feed
This commit is contained in:
@@ -11,7 +11,7 @@ function computeEndTime(&$data){
|
||||
}
|
||||
|
||||
|
||||
function renameArray($data){
|
||||
function formatArray($data){
|
||||
computeEndTime($data);
|
||||
$events = array();
|
||||
foreach($data as $row){
|
||||
@@ -36,7 +36,7 @@ function fetchDatabase(){
|
||||
|
||||
|
||||
$result = fetchDatabase();
|
||||
$events = renameArray($result);
|
||||
$events = formatArray($result);
|
||||
echo json_encode($events);
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user