Merge branch 'devel' of dev.sourcefabric.org:airtime into devel
This commit is contained in:
commit
7876552b38
19 changed files with 197 additions and 139 deletions
|
@ -91,7 +91,7 @@ class Playlist {
|
|||
{
|
||||
$seconds = $p_seconds;
|
||||
$milliseconds = intval(($seconds - intval($seconds)) * 1000);
|
||||
$milliStr = str_pad($milliseconds, 3, '0');
|
||||
$milliStr = str_pad($milliseconds, 3, '0', STR_PAD_LEFT);
|
||||
$hours = floor($seconds / 3600);
|
||||
$seconds -= $hours * 3600;
|
||||
$minutes = floor($seconds / 60);
|
||||
|
|
|
@ -311,7 +311,7 @@ class Application_Model_Preference
|
|||
$outputArray['STATION_WEB_SITE'] = Application_Model_Preference::GetStationWebSite();
|
||||
$outputArray['STATION_COUNTRY'] = Application_Model_Preference::GetStationCountry();
|
||||
$outputArray['STATION_CITY'] = Application_Model_Preference::GetStationCity();
|
||||
$outputArrat['STATION_DESCRIPTION'] = Application_Model_Preference::GetStationDescription();
|
||||
$outputArray['STATION_DESCRIPTION'] = Application_Model_Preference::GetStationDescription();
|
||||
|
||||
// get web server info
|
||||
$url = $systemInfoArray["AIRTIME_VERSION_URL"];
|
||||
|
@ -328,11 +328,13 @@ class Application_Model_Preference
|
|||
$outputArray['NUM_OF_PAST_SHOWS'] = ShowInstance::GetShowInstanceCount(date("Y-m-d H:i:s"));
|
||||
$outputArray['UNIQUE_ID'] = Application_Model_Preference::GetUniqueId();
|
||||
|
||||
$outputArray = array_merge($outputArray, $systemInfoArray);
|
||||
$outputArray = array_merge($systemInfoArray, $outputArray);
|
||||
|
||||
$outputString = "\n";
|
||||
foreach($outputArray as $key => $out){
|
||||
$outputString .= $key.' : '.$out."\n";
|
||||
if(!empty($out)){
|
||||
$outputString .= $key.' : '.$out."\n";
|
||||
}
|
||||
}
|
||||
if($returnArray){
|
||||
$outputArray['LOGOIMG'] = Application_Model_Preference::GetStationLogo();
|
||||
|
|
|
@ -445,6 +445,16 @@ class StoredFile {
|
|||
return "http://$CC_CONFIG[baseUrl]:$CC_CONFIG[basePort]/api/get-media/file/".$this->getGunId().".".$this->getFileExtension();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sometimes we want a relative URL and not a full URL. See bug
|
||||
* http://dev.sourcefabric.org/browse/CC-2403
|
||||
*/
|
||||
public function getRelativeFileUrl()
|
||||
{
|
||||
global $CC_CONFIG;
|
||||
return "api/get-media/file/".$this->getGunId().".".$this->getFileExtension();
|
||||
}
|
||||
|
||||
public static function Insert($md=null)
|
||||
{
|
||||
$file = new CcFiles();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue