mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
CImageInfo: use call of getTextFromFile() without explicit object
This commit is contained in:
@@ -339,14 +339,13 @@ string CImageInfo::getLicenseText()
|
|||||||
file += g_settings.language;
|
file += g_settings.language;
|
||||||
file += ".license";
|
file += ".license";
|
||||||
|
|
||||||
CComponentsText txt;
|
string res = CComponentsText::getTextFromFile(file);
|
||||||
string res = txt.getTextFromFile(file);
|
|
||||||
|
|
||||||
//assign default text, if language file is not available
|
//assign default text, if language file is not available
|
||||||
if(res.empty()){
|
if(res.empty()){
|
||||||
file = LICENSEDIR;
|
file = LICENSEDIR;
|
||||||
file += "english.license";
|
file += "english.license";
|
||||||
res = txt.getTextFromFile(file);
|
res = CComponentsText::getTextFromFile(file);
|
||||||
}
|
}
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
|
Reference in New Issue
Block a user