Fix title of rss file

This commit is contained in:
Laurent Destailleur 2021-05-20 10:07:50 +02:00
parent dc3b5846fb
commit 1a8b10328f

View File

@ -149,8 +149,10 @@ if ($rss) {
}
if ($buildfile) {
$langs->load("other");
$title = $desc = $langs->transnoentities('LatestBlogPosts');
$outputlangs = new Translate('', $conf);
$outputlangs->setDefaultLang($l);
$outputlangs->loadLangs(array("main", "other"));
$title = $desc = $outputlangs->transnoentities('LatestBlogPosts');
// Create temp file
$outputfiletmp = tempnam($dir_temp, 'tmp'); // Temporary file (allow call of function by different threads