Show name of sitemap file

This commit is contained in:
Laurent Destailleur
2021-04-27 11:20:04 +02:00
parent 4b204301a9
commit 0d391ec185
2 changed files with 3 additions and 3 deletions

View File

@@ -140,7 +140,7 @@ DefineListOfAltLanguagesInWebsiteProperties=Define list of all available languag
GenerateSitemaps=Generate website sitemap file
ConfirmGenerateSitemaps=If you confirm, you will erase the existing sitemap file...
ConfirmSitemapsCreation=Confirm sitemap generation
SitemapGenerated=Sitemap file generated
SitemapGenerated=Sitemap file <b>%s</b> generated
ImportFavicon=Favicon
ErrorFaviconType=Favicon must be png
ErrorFaviconSize=Favicon must be sized 16x16, 32x32 or 64x64

View File

@@ -2260,7 +2260,7 @@ if ($action == 'generatesitemaps' && $usercanedit) {
$domtree->formatOutput = true;
$xmlname = 'sitemap.'.$websitekey.'.xml';
$xmlname = 'sitemap.xml';
$sql = "SELECT wp.rowid, wp.type_container , wp.pageurl, wp.lang, wp.fk_page, wp.tms as tms,";
$sql .= " w.virtualhost, w.fk_default_home";
@@ -2396,7 +2396,7 @@ if ($action == 'generatesitemaps' && $usercanedit) {
if (!empty($conf->global->MAIN_UMASK)) {
@chmod($tempdir.$xmlname, octdec($conf->global->MAIN_UMASK));
}
setEventMessages($langs->trans("SitemapGenerated"), null, 'mesgs');
setEventMessages($langs->trans("SitemapGenerated", $xmlname), null, 'mesgs');
} else {
setEventMessages($object->error, $object->errors, 'errors');
}