Example #1
0
 public static function getConferenceInformation($mandator)
 {
     if (isset($GLOBALS['CONFIG'])) {
         $saved_config = $GLOBALS['CONFIG'];
     }
     Conferences::load($mandator);
     $conf = new Conference();
     $info = ['slug' => $mandator, 'link' => forceslash($mandator), 'active' => !$conf->isClosed(), 'title' => $conf->getTitle(), 'description' => $conf->getDescription(), 'relive' => forceslash($mandator) . $conf->getReliveUrl(), 'releases' => $conf->getReleasesUrl(), 'CONFIG' => $GLOBALS['CONFIG']];
     unset($GLOBALS['CONFIG']);
     if (isset($saved_config)) {
         $GLOBALS['CONFIG'] = $saved_config;
     }
     return $info;
 }