Show name of sitemap file
This commit is contained in:
parent
4b204301a9
commit
0d391ec185
@ -140,7 +140,7 @@ DefineListOfAltLanguagesInWebsiteProperties=Define list of all available languag
|
|||||||
GenerateSitemaps=Generate website sitemap file
|
GenerateSitemaps=Generate website sitemap file
|
||||||
ConfirmGenerateSitemaps=If you confirm, you will erase the existing sitemap file...
|
ConfirmGenerateSitemaps=If you confirm, you will erase the existing sitemap file...
|
||||||
ConfirmSitemapsCreation=Confirm sitemap generation
|
ConfirmSitemapsCreation=Confirm sitemap generation
|
||||||
SitemapGenerated=Sitemap file generated
|
SitemapGenerated=Sitemap file <b>%s</b> generated
|
||||||
ImportFavicon=Favicon
|
ImportFavicon=Favicon
|
||||||
ErrorFaviconType=Favicon must be png
|
ErrorFaviconType=Favicon must be png
|
||||||
ErrorFaviconSize=Favicon must be sized 16x16, 32x32 or 64x64
|
ErrorFaviconSize=Favicon must be sized 16x16, 32x32 or 64x64
|
||||||
|
|||||||
@ -2260,7 +2260,7 @@ if ($action == 'generatesitemaps' && $usercanedit) {
|
|||||||
|
|
||||||
$domtree->formatOutput = true;
|
$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 = "SELECT wp.rowid, wp.type_container , wp.pageurl, wp.lang, wp.fk_page, wp.tms as tms,";
|
||||||
$sql .= " w.virtualhost, w.fk_default_home";
|
$sql .= " w.virtualhost, w.fk_default_home";
|
||||||
@ -2396,7 +2396,7 @@ if ($action == 'generatesitemaps' && $usercanedit) {
|
|||||||
if (!empty($conf->global->MAIN_UMASK)) {
|
if (!empty($conf->global->MAIN_UMASK)) {
|
||||||
@chmod($tempdir.$xmlname, octdec($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 {
|
} else {
|
||||||
setEventMessages($object->error, $object->errors, 'errors');
|
setEventMessages($object->error, $object->errors, 'errors');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user