diff --git a/airtime_mvc/application/controllers/ApiController.php b/airtime_mvc/application/controllers/ApiController.php index 1e3cee844..6572774cc 100644 --- a/airtime_mvc/application/controllers/ApiController.php +++ b/airtime_mvc/application/controllers/ApiController.php @@ -313,7 +313,7 @@ class ApiController extends Zend_Controller_Action } //used by caller to determine if the airtime they are running or widgets in use is out of date. - $result['AIRTIME_API_VERSION'] = AIRTIME_API_VERSION; + $result['AIRTIME_API_VERSION'] = AIRTIME_API_VERSION; header("Content-type: text/javascript"); // If a callback is not given, then just provide the raw JSON. echo isset($_GET['callback']) ? $_GET['callback'].'('.json_encode($result).')' : json_encode($result); @@ -830,8 +830,8 @@ class ApiController extends Zend_Controller_Action if ($djtype == 'master') { //check against master - if ($username == Application_Model_Preference::GetLiveSteamMasterUsername() - && $password == Application_Model_Preference::GetLiveSteamMasterPassword()) { + if ($username == Application_Model_Preference::GetLiveStreamMasterUsername() + && $password == Application_Model_Preference::GetLiveStreamMasterPassword()) { $this->view->msg = true; } else { $this->view->msg = false; diff --git a/airtime_mvc/application/controllers/PreferenceController.php b/airtime_mvc/application/controllers/PreferenceController.php index 49ce2a4a1..5c375deab 100644 --- a/airtime_mvc/application/controllers/PreferenceController.php +++ b/airtime_mvc/application/controllers/PreferenceController.php @@ -220,8 +220,8 @@ class PreferenceController extends Zend_Controller_Action // this goes into cc_pref table Application_Model_Preference::SetStreamLabelFormat($values['streamFormat']); - Application_Model_Preference::SetLiveSteamMasterUsername($values["master_username"]); - Application_Model_Preference::SetLiveSteamMasterPassword($values["master_password"]); + Application_Model_Preference::SetLiveStreamMasterUsername($values["master_username"]); + Application_Model_Preference::SetLiveStreamMasterPassword($values["master_password"]); Application_Model_Preference::SetDefaultTransitionFade($values["transition_fade"]); Application_Model_Preference::SetAutoTransition($values["auto_transition"]); Application_Model_Preference::SetAutoSwitch($values["auto_switch"]); diff --git a/airtime_mvc/application/forms/LiveStreamingPreferences.php b/airtime_mvc/application/forms/LiveStreamingPreferences.php index 8f7ac95c0..e66976c8b 100644 --- a/airtime_mvc/application/forms/LiveStreamingPreferences.php +++ b/airtime_mvc/application/forms/LiveStreamingPreferences.php @@ -45,7 +45,7 @@ class Application_Form_LiveStreamingPreferences extends Zend_Form_SubForm ->setAllowEmpty(true) ->setLabel('Master Username') ->setFilters(array('StringTrim')) - ->setValue(Application_Model_Preference::GetLiveSteamMasterUsername()) + ->setValue(Application_Model_Preference::GetLiveStreamMasterUsername()) ->setDecorators(array('ViewHelper')); $this->addElement($master_username); @@ -59,7 +59,7 @@ class Application_Form_LiveStreamingPreferences extends Zend_Form_SubForm $master_password->setAttrib('autocomplete', 'off') ->setAttrib('renderPassword','true') ->setAllowEmpty(true) - ->setValue(Application_Model_Preference::GetLiveSteamMasterPassword()) + ->setValue(Application_Model_Preference::GetLiveStreamMasterPassword()) ->setLabel('Master Password') ->setFilters(array('StringTrim')) ->setDecorators(array('ViewHelper')); diff --git a/airtime_mvc/application/models/Preference.php b/airtime_mvc/application/models/Preference.php index 8f08e385e..e65151ce4 100644 --- a/airtime_mvc/application/models/Preference.php +++ b/airtime_mvc/application/models/Preference.php @@ -892,22 +892,22 @@ class Application_Model_Preference return (strlen($val) == 0) ? 0 : $val; } - public static function SetLiveSteamMasterUsername($value) + public static function SetLiveStreamMasterUsername($value) { self::setValue("live_stream_master_username", $value, false); } - public static function GetLiveSteamMasterUsername() + public static function GetLiveStreamMasterUsername() { return self::getValue("live_stream_master_username"); } - public static function SetLiveSteamMasterPassword($value) + public static function SetLiveStreamMasterPassword($value) { self::setValue("live_stream_master_password", $value, false); } - public static function GetLiveSteamMasterPassword() + public static function GetLiveStreamMasterPassword() { return self::getValue("live_stream_master_password"); } @@ -1093,7 +1093,7 @@ class Application_Model_Preference - public static function getOrderingMap($pref_param) + public static function getOrderingMap($pref_param) { $v = self::getValue($pref_param, true);