From 1a8b10328f980fad9876ac1a41e52e6eb1b7c85a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 20 May 2021 10:07:50 +0200 Subject: [PATCH] Fix title of rss file --- htdocs/website/samples/wrapper.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/website/samples/wrapper.php b/htdocs/website/samples/wrapper.php index b847f607bf3..4802755608f 100644 --- a/htdocs/website/samples/wrapper.php +++ b/htdocs/website/samples/wrapper.php @@ -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