Merge pull request #56 from radiorabe/feature/version-reporting

Harmonize version reporting in ui and api
This commit is contained in:
Robb 2017-03-11 19:06:28 -05:00 committed by GitHub
commit ff83784864
8 changed files with 23 additions and 31 deletions

View file

@ -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)
{