Merge branch '2.5.x' into 2.5.x-saas

This commit is contained in:
drigato 2014-02-03 12:33:57 -05:00
commit 09040dc021
60 changed files with 4502 additions and 338 deletions

View file

@ -18,8 +18,13 @@ class Config {
"rootDir" => __DIR__."/../.."
);
$filename = isset($_SERVER['AIRTIME_CONF']) ? $_SERVER['AIRTIME_CONF'] : "/etc/airtime/airtime.conf";
//In the unit testing environment, we always want to use our local airtime.conf in airtime_mvc/application/test:
if (getenv('AIRTIME_UNIT_TEST') == '1') {
$filename = "airtime.conf";
} else {
$filename = isset($_SERVER['AIRTIME_CONF']) ? $_SERVER['AIRTIME_CONF'] : "/etc/airtime/airtime.conf";
}
$values = parse_ini_file($filename, true);
// Name of the web server user

View file

@ -7,8 +7,9 @@ class Application_Model_Preference
private static function getUserId()
{
//called from a daemon process
if (!class_exists("Zend_Auth", false) || !Zend_Auth::getInstance()->hasIdentity()) {
//pass in true so the check is made with the autoloader
//we need this check because saas calls this function from outside Zend
if (!class_exists("Zend_Auth", true) || !Zend_Auth::getInstance()->hasIdentity()) {
$userId = null;
}
else {
@ -221,6 +222,7 @@ class Application_Model_Preference
*/
public static function SetShowsPopulatedUntil($dateTime)
{
$dateTime->setTimezone(new DateTimeZone("UTC"));
self::setValue("shows_populated_until", $dateTime->format("Y-m-d H:i:s"));
}

View file

@ -1418,7 +1418,7 @@ SQL;
* @param $ccShow
* @param $showData
*/
private function setCcShow($showData)
public function setCcShow($showData)
{
if (!$this->isUpdate) {
$ccShow = new CcShow();