imageinfo: change handling of yWeb version; use own CConfigFile

Origin commit data
------------------
Branch: ni/coolstream
Commit: 629f91e229
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-03-03 (Fri, 03 Mar 2017)

Origin message was:
------------------
- imageinfo: change handling of yWeb version; use own CConfigFile

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-03-03 15:48:31 +01:00
parent 48c57758ca
commit a8416659c9
2 changed files with 6 additions and 9 deletions

View File

@@ -310,7 +310,7 @@ void CImageInfo::InitInfoData()
s_api += ", ";
#endif
s_api += "yWeb ";
s_api += getYApi();
s_api += getYWebVersion();
s_api += ", ";
s_api += HTTPD_NAME;
s_api += + " ";
@@ -462,12 +462,9 @@ void CImageInfo::hide()
}
}
string CImageInfo::getYApi()
string CImageInfo::getYWebVersion()
{
string ret;
config.loadConfig(Y_VERSION_FILE);
ret = config.getString("version", "n/a");
config.loadConfig(VERSION_FILE);
return ret;
CConfigFile yV('=', false);
yV.loadConfig(PRIVATE_HTTPDDIR "/Y_Version.txt");
return yV.getString("version", "n/a");
}