revert sitemapgenerator v5
This commit is contained in:
parent
b8ec14e005
commit
51c5522f5e
@ -1141,20 +1141,8 @@ class common
|
|||||||
//require_once 'core/vendor/sitemap/SitemapGenerator.php';
|
//require_once 'core/vendor/sitemap/SitemapGenerator.php';
|
||||||
|
|
||||||
$timezone = $this->getData(['config', 'timezone']);
|
$timezone = $this->getData(['config', 'timezone']);
|
||||||
|
$outputDir = getcwd();
|
||||||
$config = new \Icamys\SitemapGenerator\Config();
|
$sitemap = new \Icamys\SitemapGenerator\SitemapGenerator(helper::baseurl(false), $outputDir);
|
||||||
|
|
||||||
|
|
||||||
// Your site URL.
|
|
||||||
$config->setBaseURL(helper::baseurl(false));
|
|
||||||
// // OPTIONAL. Setting the current working directory to be output directory
|
|
||||||
$config->setSaveDirectory(sys_get_temp_dir());
|
|
||||||
|
|
||||||
|
|
||||||
$sitemap = new \Icamys\SitemapGenerator\SitemapGenerator($config);
|
|
||||||
|
|
||||||
// Create a compressed sitemap
|
|
||||||
$sitemap->enableCompression();
|
|
||||||
|
|
||||||
// will create also compressed (gzipped) sitemap : option buguée
|
// will create also compressed (gzipped) sitemap : option buguée
|
||||||
// $sitemap->enableCompression();
|
// $sitemap->enableCompression();
|
||||||
@ -1253,6 +1241,7 @@ class common
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (file_exists('sitemap.xml') && file_exists('robots.txt'));
|
return (file_exists('sitemap.xml') && file_exists('robots.txt'));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user