mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
imageinfo: use nhttpd.conf as source for webif path
This commit is contained in:
@@ -601,7 +601,15 @@ void CImageInfo::hide()
|
|||||||
|
|
||||||
string CImageInfo::getYWebVersion()
|
string CImageInfo::getYWebVersion()
|
||||||
{
|
{
|
||||||
|
CConfigFile yConf('=', false);
|
||||||
|
yConf.loadConfig(CONFIGDIR "/nhttpd.conf");
|
||||||
|
std::string ver = yConf.getString("WebsiteMain.directory", "n/a") + "/Y_Version.txt";
|
||||||
|
|
||||||
CConfigFile yV('=', false);
|
CConfigFile yV('=', false);
|
||||||
yV.loadConfig(PRIVATE_HTTPDDIR "/Y_Version.txt");
|
if (file_exists(ver.c_str()))
|
||||||
return yV.getString("version", "n/a");
|
{
|
||||||
|
yV.loadConfig(ver);
|
||||||
|
return yV.getString("version", "n/a");
|
||||||
|
}
|
||||||
|
return "n/a";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user