Merge pull request #56 from radiorabe/feature/version-reporting
Harmonize version reporting in ui and api
This commit is contained in:
commit
ff83784864
8 changed files with 23 additions and 31 deletions
|
@ -252,10 +252,8 @@ class AirtimeInstall
|
|||
}
|
||||
public static function GetAirtimeVersion()
|
||||
{
|
||||
$con = Propel::getConnection();
|
||||
$sql = "SELECT valstr FROM cc_pref WHERE keystr = 'system_version' LIMIT 1";
|
||||
$version = $con->query($sql)->fetchColumn(0);
|
||||
return $version;
|
||||
$config = Config::getConfig();
|
||||
return $config['airtime_version'];
|
||||
}
|
||||
public static function DeleteFilesRecursive($p_path)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue