Add API function to get ZM version
This commit is contained in:
parent
7ba971806f
commit
40dcca2084
|
@ -58,4 +58,13 @@ class HostController extends AppController {
|
|||
'_serialize' => array('space')
|
||||
));
|
||||
}
|
||||
|
||||
function getVersion() {
|
||||
$version = Configure::read('ZM_VERSION');
|
||||
|
||||
$this->set(array(
|
||||
'version' => $version,
|
||||
'_serialize' => array('version')
|
||||
));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue