schedule: display TBA on missing data

This commit is contained in:
Vasil Kolev 2018-09-11 17:08:39 +03:00 committed by Openfest
parent bd9e467ac7
commit ac3a19bf73
3 changed files with 6 additions and 1 deletions

View File

@ -29,6 +29,8 @@ if (!empty($content)) {
echo $content['fulltalks'];
echo $content['gspk'];
echo $content['fspk'];
} else {
echo "TBA";
}
?>

View File

@ -23,7 +23,8 @@ function loadData($config) {
$json = $curl->getUrl($config['conferenceId'] . '/' . $filename);
if ($json === false) {
echo 'get failed: ', $filename, PHP_EOL;
#echo 'get failed: ', $filename, PHP_EOL;
return false;
exit;
}

View File

@ -11,6 +11,8 @@ function parseData($config, $data) {
)
);
if ($data === false) return false;
// We need to set these so we actually parse properly the dates. WP fucks up both.
date_default_timezone_set('Europe/Sofia');
setlocale(LC_TIME, $languages[$config['lang']]['locale']);