Harmonize version reporting in ui and api
Everything should use the version from the VERSION file created by the installer like this.
This commit is contained in:
parent
e3785e25f9
commit
bd18caf69d
8 changed files with 23 additions and 31 deletions
|
@ -105,8 +105,9 @@ class ApiController extends Zend_Controller_Action
|
|||
|
||||
public function versionAction()
|
||||
{
|
||||
$config = Config::getConfig();
|
||||
$this->_helper->json->sendJson( array(
|
||||
"airtime_version" => Application_Model_Preference::GetAirtimeVersion(),
|
||||
"airtime_version" => $config['airtime_version'],
|
||||
"api_version" => AIRTIME_API_VERSION));
|
||||
}
|
||||
|
||||
|
@ -685,7 +686,8 @@ class ApiController extends Zend_Controller_Action
|
|||
$this->_helper->json->sendJson(
|
||||
array("jsonrpc" => "2.0", "error" => array("code" => $result['code'], "message" => $result['message']))
|
||||
);
|
||||
}*/
|
||||
}
|
||||
**/
|
||||
}
|
||||
|
||||
public function uploadRecordedAction()
|
||||
|
@ -944,10 +946,11 @@ class ApiController extends Zend_Controller_Action
|
|||
{
|
||||
$request = $this->getRequest();
|
||||
$getDiskInfo = $request->getParam('diskinfo') == "true";
|
||||
$config = Config::getConfig();
|
||||
|
||||
$status = array(
|
||||
"platform"=>Application_Model_Systemstatus::GetPlatformInfo(),
|
||||
"airtime_version"=>Application_Model_Preference::GetAirtimeVersion(),
|
||||
"airtime_version"=>$config['airtime_version'],
|
||||
"services"=>array(
|
||||
"pypo"=>Application_Model_Systemstatus::GetPypoStatus(),
|
||||
"liquidsoap"=>Application_Model_Systemstatus::GetLiquidsoapStatus(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue